	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function simpad_pcmcia_hw_init
_simpad_pcmcia_hw_init:                 ## @simpad_pcmcia_hw_init
	.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	_VCC_3V_EN@GOTPCREL(%rip), %rcx
	movq	_VCC_5V_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_EN0@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%rdi, %rbx
	movq	_EN1@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, %edi
	callq	_simpad_clear_cs3_bit
	movq	(%rbx), %rax
	movq	_SOC_STAT_CD@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	L_.str(%rip), %rdx
	movq	%rdx, (%rax,%rcx,8)
	movq	_SOC_STAT_RDY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	L_.str.1(%rip), %rdx
	movq	%rdx, (%rax,%rcx,8)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_soc_pcmcia_request_gpiods      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VCC_3V_EN,4,2                  ## @VCC_3V_EN
	.comm	_VCC_5V_EN,4,2                  ## @VCC_5V_EN
	.comm	_EN0,4,2                        ## @EN0
	.comm	_EN1,4,2                        ## @EN1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cf-detect"

	.comm	_SOC_STAT_CD,8,3                ## @SOC_STAT_CD
L_.str.1:                               ## @.str.1
	.asciz	"cf-ready"

	.comm	_SOC_STAT_RDY,8,3               ## @SOC_STAT_RDY
	.no_dead_strip	_simpad_pcmcia_hw_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function simpad_pcmcia_hw_init
_simpad_pcmcia_hw_init:                 ; @simpad_pcmcia_hw_init
	.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, _VCC_3V_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VCC_3V_EN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _VCC_5V_EN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VCC_5V_EN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _EN0@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EN0@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _EN1@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EN1@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w0, w8, w9
	bl	_simpad_clear_cs3_bit
	ldr	x8, [x19]
Lloh12:
	adrp	x9, _SOC_STAT_CD@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SOC_STAT_CD@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
Lloh15:
	adrp	x10, l_.str@PAGE
Lloh16:
	add	x10, x10, l_.str@PAGEOFF
	str	x10, [x8, x9, lsl #3]
Lloh17:
	adrp	x9, _SOC_STAT_RDY@GOTPAGE
Lloh18:
	ldr	x9, [x9, _SOC_STAT_RDY@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
Lloh20:
	adrp	x10, l_.str.1@PAGE
Lloh21:
	add	x10, x10, l_.str.1@PAGEOFF
	str	x10, [x8, x9, lsl #3]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_soc_pcmcia_request_gpiods
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VCC_3V_EN,4,2                  ; @VCC_3V_EN
	.comm	_VCC_5V_EN,4,2                  ; @VCC_5V_EN
	.comm	_EN0,4,2                        ; @EN0
	.comm	_EN1,4,2                        ; @EN1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cf-detect"

	.comm	_SOC_STAT_CD,8,3                ; @SOC_STAT_CD
l_.str.1:                               ; @.str.1
	.asciz	"cf-ready"

	.comm	_SOC_STAT_RDY,8,3               ; @SOC_STAT_RDY
	.no_dead_strip	_simpad_pcmcia_hw_init
.subsections_via_symbols
