	.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
	movabsq	$4294967360, %rax               ## imm = 0x100000040
	movq	%rax, (%rdi)
	callq	_jl2005c_get_firmware_id
	movq	(%rbx), %rax
	movl	$240, %ecx
	andl	(%rax), %ecx
	cmpl	$64, %ecx
	jne	LBB0_2
## %bb.1:
	movq	_cif_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 16(%rbx)
	callq	_ARRAY_SIZE
	leaq	8(%rbx), %rcx
	movq	%rax, 8(%rbx)
	movl	$128, %eax
	jmp	LBB0_3
LBB0_2:
	movq	_vga_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 16(%rbx)
	callq	_ARRAY_SIZE
	leaq	8(%rbx), %rcx
	movq	%rax, 8(%rbx)
	movl	$512, %eax                      ## imm = 0x200
LBB0_3:
	movl	%eax, (%rcx)
	addq	$12, %rbx
	movq	_jl2005c_dostream@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_INIT_WORK
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cif_mode,8,3                   ## @cif_mode
	.comm	_vga_mode,8,3                   ## @vga_mode
	.comm	_jl2005c_dostream,4,2           ## @jl2005c_dostream
	.no_dead_strip	_sd_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function sd_config
lCPI0_0:
	.long	64                              ; 0x40
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_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, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x0]
	bl	_jl2005c_get_firmware_id
	ldr	x8, [x19]
	ldr	w8, [x8]
	and	w8, w8, #0xf0
	cmp	w8, #64
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _cif_mode@GOTPAGE
Lloh3:
	ldr	x8, [x8, _cif_mode@GOTPAGEOFF]
Lloh4:
	ldr	x0, [x8]
	str	x0, [x19, #16]
	bl	_ARRAY_SIZE
	mov	x8, x19
	str	x0, [x8, #8]!
	mov	w9, #128
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _vga_mode@GOTPAGE
Lloh6:
	ldr	x8, [x8, _vga_mode@GOTPAGEOFF]
Lloh7:
	ldr	x0, [x8]
	str	x0, [x19, #16]
	bl	_ARRAY_SIZE
	mov	x8, x19
	str	x0, [x8, #8]!
	mov	w9, #512
LBB0_3:
	str	w9, [x8]
	add	x0, x19, #12
Lloh8:
	adrp	x8, _jl2005c_dostream@GOTPAGE
Lloh9:
	ldr	x8, [x8, _jl2005c_dostream@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_INIT_WORK
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_cif_mode,8,3                   ; @cif_mode
	.comm	_vga_mode,8,3                   ; @vga_mode
	.comm	_jl2005c_dostream,4,2           ; @jl2005c_dostream
	.no_dead_strip	_sd_config
.subsections_via_symbols
