	.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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_reg_r
	movq	(%r14), %rax
	cmpl	$16, (%rax)
	jne	LBB0_1
## %bb.2:
	movl	(%r15), %eax
	movzbl	%al, %ecx
	sarl	$8, %eax
	movl	%eax, (%r14)
	movl	%ecx, 4(%r14)
	movq	_sensor_data@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	movq	_F_SIF@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	(%rcx,%rax,4), %edx
	jne	LBB0_3
## %bb.4:
	movq	_vga_mode@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_3:
	movq	_sif_mode@GOTPCREL(%rip), %rax
LBB0_5:
	movq	(%rax), %rdi
	movq	%rdi, 24(%r14)
	callq	_ARRAY_SIZE
	movq	%rax, 16(%r14)
	movl	$36, 8(%r14)
	xorl	%ebx, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_sensor_data,8,3                ## @sensor_data
	.comm	_F_SIF,4,2                      ## @F_SIF
	.comm	_vga_mode,8,3                   ## @vga_mode
	.comm	_sif_mode,8,3                   ## @sif_mode
	.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	x20, x1
	mov	x19, x0
	mov	w1, #0
	bl	_reg_r
	ldr	x8, [x19]
	ldr	w8, [x8]
	cmp	w8, #16
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x20]
	asr	w9, w8, #8
	and	w8, w8, #0xff
Lloh0:
	adrp	x10, _sensor_data@GOTPAGE
Lloh1:
	ldr	x10, [x10, _sensor_data@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	ldr	w10, [x10, w9, sxtw #2]
	stp	w9, w8, [x19]
Lloh3:
	adrp	x8, _F_SIF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _F_SIF@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _vga_mode@GOTPAGE
Lloh7:
	ldr	x9, [x9, _vga_mode@GOTPAGEOFF]
Lloh8:
	adrp	x11, _sif_mode@GOTPAGE
Lloh9:
	ldr	x11, [x11, _sif_mode@GOTPAGEOFF]
	tst	w8, w10
	csel	x8, x9, x11, eq
	ldr	x0, [x8]
	str	x0, [x19, #24]
	bl	_ARRAY_SIZE
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19, #16]
	mov	w8, #36
	str	w8, [x19, #8]
	b	LBB0_3
LBB0_2:
Lloh10:
	adrp	x8, _ENODEV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_sensor_data,8,3                ; @sensor_data
	.comm	_F_SIF,4,2                      ; @F_SIF
	.comm	_vga_mode,8,3                   ; @vga_mode
	.comm	_sif_mode,8,3                   ; @sif_mode
	.no_dead_strip	_sd_config
.subsections_via_symbols
