	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sg2_pcmcia_hw_init
_sg2_pcmcia_hw_init:                    ## @sg2_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
	movq	_SG2_S0_GPIO_DETECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rdi), %rcx
	movq	_SOC_STAT_CD@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	shlq	$4, %rdx
	movl	%eax, 8(%rcx,%rdx)
	leaq	L_.str(%rip), %rax
	movq	%rax, (%rcx,%rdx)
	movq	_SG2_S0_GPIO_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_SOC_STAT_RDY@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	shlq	$4, %rdx
	movl	%eax, 8(%rcx,%rdx)
	leaq	L_.str.1(%rip), %rax
	movq	%rax, (%rcx,%rdx)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SG2_S0_GPIO_DETECT,4,2         ## @SG2_S0_GPIO_DETECT
	.comm	_SOC_STAT_CD,8,3                ## @SOC_STAT_CD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PCMCIA0 CD"

	.comm	_SG2_S0_GPIO_READY,4,2          ## @SG2_S0_GPIO_READY
	.comm	_SOC_STAT_RDY,8,3               ## @SOC_STAT_RDY
L_.str.1:                               ## @.str.1
	.asciz	"PCMCIA0 RDY"

	.no_dead_strip	_sg2_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 sg2_pcmcia_hw_init
_sg2_pcmcia_hw_init:                    ; @sg2_pcmcia_hw_init
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _SG2_S0_GPIO_DETECT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SG2_S0_GPIO_DETECT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x0]
Lloh3:
	adrp	x10, _SOC_STAT_CD@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SOC_STAT_CD@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	add	x10, x9, x10, lsl #4
	str	w8, [x10, #8]
Lloh6:
	adrp	x8, l_.str@PAGE
Lloh7:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x10]
Lloh8:
	adrp	x8, _SG2_S0_GPIO_READY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SG2_S0_GPIO_READY@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x10, _SOC_STAT_RDY@GOTPAGE
Lloh12:
	ldr	x10, [x10, _SOC_STAT_RDY@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	add	x9, x9, x10, lsl #4
	str	w8, [x9, #8]
Lloh14:
	adrp	x8, l_.str.1@PAGE
Lloh15:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [x9]
	mov	w0, #0
	ret
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SG2_S0_GPIO_DETECT,4,2         ; @SG2_S0_GPIO_DETECT
	.comm	_SOC_STAT_CD,8,3                ; @SOC_STAT_CD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PCMCIA0 CD"

	.comm	_SG2_S0_GPIO_READY,4,2          ; @SG2_S0_GPIO_READY
	.comm	_SOC_STAT_RDY,8,3               ; @SOC_STAT_RDY
l_.str.1:                               ; @.str.1
	.asciz	"PCMCIA0 RDY"

	.no_dead_strip	_sg2_pcmcia_hw_init
.subsections_via_symbols
