	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sd_config
_sd_config:                             ## @sd_config
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_vga_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 4(%rbx)
	callq	_ARRAY_SIZE
	movq	_sd_ctrls@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_SD_BRIGHTNESS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ecx
	movl	%ecx, 12(%rbx)
	movq	_SD_CONTRAST@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ecx
	movl	%ecx, 8(%rbx)
	movq	_SD_COLOR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ecx
	movl	%ecx, 4(%rbx)
	movq	_SD_HUE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vga_mode,4,2                   ## @vga_mode
	.comm	_sd_ctrls,8,3                   ## @sd_ctrls
	.comm	_SD_BRIGHTNESS,8,3              ## @SD_BRIGHTNESS
	.comm	_SD_CONTRAST,8,3                ## @SD_CONTRAST
	.comm	_SD_COLOR,8,3                   ## @SD_COLOR
	.comm	_SD_HUE,8,3                     ## @SD_HUE
	.no_dead_strip	_sd_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sd_config
_sd_config:                             ; @sd_config
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _vga_mode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vga_mode@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	str	w0, [x19, #4]
	bl	_ARRAY_SIZE
Lloh3:
	adrp	x8, _sd_ctrls@GOTPAGE
Lloh4:
	ldr	x8, [x8, _sd_ctrls@GOTPAGEOFF]
Lloh5:
	adrp	x9, _SD_BRIGHTNESS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SD_BRIGHTNESS@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	ldr	x9, [x9]
	ldr	w9, [x8, x9, lsl #2]
Lloh9:
	adrp	x10, _SD_CONTRAST@GOTPAGE
Lloh10:
	ldr	x10, [x10, _SD_CONTRAST@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	ldr	w10, [x8, x10, lsl #2]
Lloh12:
	adrp	x11, _SD_COLOR@GOTPAGE
Lloh13:
	ldr	x11, [x11, _SD_COLOR@GOTPAGEOFF]
	stp	w10, w9, [x19, #8]
Lloh14:
	ldr	x9, [x11]
	ldr	w9, [x8, x9, lsl #2]
Lloh15:
	adrp	x10, _SD_HUE@GOTPAGE
Lloh16:
	ldr	x10, [x10, _SD_HUE@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	ldr	w8, [x8, x10, lsl #2]
	stp	w8, w9, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_vga_mode,4,2                   ; @vga_mode
	.comm	_sd_ctrls,8,3                   ; @sd_ctrls
	.comm	_SD_BRIGHTNESS,8,3              ; @SD_BRIGHTNESS
	.comm	_SD_CONTRAST,8,3                ; @SD_CONTRAST
	.comm	_SD_COLOR,8,3                   ; @SD_COLOR
	.comm	_SD_HUE,8,3                     ; @SD_HUE
	.no_dead_strip	_sd_config
.subsections_via_symbols
