	.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
	movl	(%rsi), %ecx
	movq	_BRIDGE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ecx, %eax
	movl	%eax, (%rdi)
	movq	_BRIDGE_INVERT_LED@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	andl	(%rdx), %ecx
	setne	%sil
	movl	%esi, 4(%rdi)
	addl	$-128, %eax
	cmpl	$6, %eax
	ja	LBB0_8
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	movq	_ov518_vga_mode@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movq	_ov511_vga_mode@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_w9968cf_vga_mode@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_ov519_vga_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 16(%rbx)
	callq	_ARRAY_SIZE
	movq	%rax, 8(%rbx)
	movq	_OVFX2_BULK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_MAX_NURBS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movl	$1, (%rbx)
	jmp	LBB0_8
LBB0_4:
	movq	_ov519_vga_mode@GOTPCREL(%rip), %rax
LBB0_7:
	movq	(%rax), %rdi
	movq	%rdi, 16(%rbx)
	callq	_ARRAY_SIZE
	movq	%rax, 8(%rbx)
LBB0_8:
	movl	$15, 8(%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_BRIDGE_MASK,4,2                ## @BRIDGE_MASK
	.comm	_BRIDGE_INVERT_LED,4,2          ## @BRIDGE_INVERT_LED
	.comm	_ov511_vga_mode,8,3             ## @ov511_vga_mode
	.comm	_ov518_vga_mode,8,3             ## @ov518_vga_mode
	.comm	_ov519_vga_mode,8,3             ## @ov519_vga_mode
	.comm	_OVFX2_BULK_SIZE,4,2            ## @OVFX2_BULK_SIZE
	.comm	_MAX_NURBS,4,2                  ## @MAX_NURBS
	.comm	_w9968cf_vga_mode,8,3           ## @w9968cf_vga_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	x19, x0
Lloh0:
	adrp	x8, _BRIDGE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BRIDGE_MASK@GOTPAGEOFF]
	ldr	w9, [x1]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w9
	str	w8, [x0]
Lloh3:
	adrp	x10, _BRIDGE_INVERT_LED@GOTPAGE
Lloh4:
	ldr	x10, [x10, _BRIDGE_INVERT_LED@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w9
	cset	w9, ne
	str	w9, [x0, #4]
	sub	w8, w8, #128
	cmp	w8, #6
	b.hi	LBB0_8
; %bb.1:
Lloh6:
	adrp	x9, lJTI0_0@PAGE
Lloh7:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh8:
	adrp	x8, _ov518_vga_mode@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ov518_vga_mode@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
Lloh10:
	adrp	x8, _ov511_vga_mode@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ov511_vga_mode@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
Lloh12:
	adrp	x8, _w9968cf_vga_mode@GOTPAGE
Lloh13:
	ldr	x8, [x8, _w9968cf_vga_mode@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh14:
	adrp	x8, _ov519_vga_mode@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ov519_vga_mode@GOTPAGEOFF]
Lloh16:
	ldr	x0, [x8]
	str	x0, [x19, #16]
	bl	_ARRAY_SIZE
	str	x0, [x19, #8]
Lloh17:
	adrp	x8, _OVFX2_BULK_SIZE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _OVFX2_BULK_SIZE@GOTPAGEOFF]
Lloh19:
	adrp	x9, _MAX_NURBS@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MAX_NURBS@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #24]
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_8
LBB0_6:
Lloh23:
	adrp	x8, _ov519_vga_mode@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ov519_vga_mode@GOTPAGEOFF]
LBB0_7:
	ldr	x0, [x8]
	str	x0, [x19, #16]
	bl	_ARRAY_SIZE
	str	x0, [x19, #8]
LBB0_8:
	mov	w8, #15
	str	w8, [x19, #8]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh21
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
                                        ; -- End function
	.comm	_BRIDGE_MASK,4,2                ; @BRIDGE_MASK
	.comm	_BRIDGE_INVERT_LED,4,2          ; @BRIDGE_INVERT_LED
	.comm	_ov511_vga_mode,8,3             ; @ov511_vga_mode
	.comm	_ov518_vga_mode,8,3             ; @ov518_vga_mode
	.comm	_ov519_vga_mode,8,3             ; @ov519_vga_mode
	.comm	_OVFX2_BULK_SIZE,4,2            ; @OVFX2_BULK_SIZE
	.comm	_MAX_NURBS,4,2                  ; @MAX_NURBS
	.comm	_w9968cf_vga_mode,8,3           ; @w9968cf_vga_mode
	.no_dead_strip	_sd_config
.subsections_via_symbols
