	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmx270_pcmcia_hw_init
_cmx270_pcmcia_hw_init:                 ## @cmx270_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GPIO_PCMCIA_RESET@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_gpio_request
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	(%r15), %edi
	xorl	%esi, %esi
	callq	_gpio_direction_output
	movq	_GPIO_PCMCIA_S0_CD_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rcx
	movq	_SOC_STAT_CD@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	shlq	$4, %rdx
	movl	%eax, 8(%rcx,%rdx)
	leaq	L_.str.1(%rip), %rax
	movq	%rax, (%rcx,%rdx)
	movq	_GPIO_PCMCIA_S0_RDYINT@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.2(%rip), %rax
	movq	%rax, (%rcx,%rdx)
LBB0_2:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GPIO_PCMCIA_RESET,4,2          ## @GPIO_PCMCIA_RESET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PCCard reset"

	.comm	_GPIO_PCMCIA_S0_CD_VALID,4,2    ## @GPIO_PCMCIA_S0_CD_VALID
	.comm	_SOC_STAT_CD,8,3                ## @SOC_STAT_CD
L_.str.1:                               ## @.str.1
	.asciz	"PCMCIA0 CD"

	.comm	_GPIO_PCMCIA_S0_RDYINT,4,2      ## @GPIO_PCMCIA_S0_RDYINT
	.comm	_SOC_STAT_RDY,8,3               ## @SOC_STAT_RDY
L_.str.2:                               ## @.str.2
	.asciz	"PCMCIA0 RDY"

	.no_dead_strip	_cmx270_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 cmx270_pcmcia_hw_init
_cmx270_pcmcia_hw_init:                 ; @cmx270_pcmcia_hw_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
Lloh0:
	adrp	x21, _GPIO_PCMCIA_RESET@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GPIO_PCMCIA_RESET@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_gpio_request
	mov	x19, x0
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x21]
	mov	w1, #0
	bl	_gpio_direction_output
Lloh4:
	adrp	x8, _GPIO_PCMCIA_S0_CD_VALID@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GPIO_PCMCIA_S0_CD_VALID@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _SOC_STAT_CD@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SOC_STAT_CD@GOTPAGEOFF]
	ldr	x10, [x20]
Lloh9:
	ldr	x9, [x9]
	add	x9, x10, x9, lsl #4
	str	w8, [x9, #8]
Lloh10:
	adrp	x8, l_.str.1@PAGE
Lloh11:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [x9]
Lloh12:
	adrp	x8, _GPIO_PCMCIA_S0_RDYINT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GPIO_PCMCIA_S0_RDYINT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _SOC_STAT_RDY@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SOC_STAT_RDY@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x9, x10, x9, lsl #4
	str	w8, [x9, #8]
Lloh18:
	adrp	x8, l_.str.2@PAGE
Lloh19:
	add	x8, x8, l_.str.2@PAGEOFF
	str	x8, [x9]
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_GPIO_PCMCIA_RESET,4,2          ; @GPIO_PCMCIA_RESET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PCCard reset"

	.comm	_GPIO_PCMCIA_S0_CD_VALID,4,2    ; @GPIO_PCMCIA_S0_CD_VALID
	.comm	_SOC_STAT_CD,8,3                ; @SOC_STAT_CD
l_.str.1:                               ; @.str.1
	.asciz	"PCMCIA0 CD"

	.comm	_GPIO_PCMCIA_S0_RDYINT,4,2      ; @GPIO_PCMCIA_S0_RDYINT
	.comm	_SOC_STAT_RDY,8,3               ; @SOC_STAT_RDY
l_.str.2:                               ; @.str.2
	.asciz	"PCMCIA0 RDY"

	.no_dead_strip	_cmx270_pcmcia_hw_init
.subsections_via_symbols
