	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpac270_pcmcia_configure_socket
_vpac270_pcmcia_configure_socket:       ## @vpac270_pcmcia_configure_socket
	.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	%rsi, %rbx
	cmpq	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	movq	_GPIO16_VPAC270_CF_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SS_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	(%rbx), %esi
	jmp	LBB0_3
LBB0_1:
	movq	_GPIO11_VPAC270_PCMCIA_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SS_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	(%rbx), %esi
	callq	_gpio_set_value
	movq	_GPIO107_VPAC270_PCMCIA_PPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%rbx), %eax
	cmpl	$33, %eax
	setne	%cl
	cmpl	$50, %eax
	setne	%al
	andb	%cl, %al
	movzbl	%al, %esi
LBB0_3:
	callq	_gpio_set_value
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GPIO11_VPAC270_PCMCIA_RESET,4,2 ## @GPIO11_VPAC270_PCMCIA_RESET
	.comm	_SS_RESET,4,2                   ## @SS_RESET
	.comm	_GPIO107_VPAC270_PCMCIA_PPEN,4,2 ## @GPIO107_VPAC270_PCMCIA_PPEN
	.comm	_GPIO16_VPAC270_CF_RESET,4,2    ## @GPIO16_VPAC270_CF_RESET
	.no_dead_strip	_vpac270_pcmcia_configure_socket
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpac270_pcmcia_configure_socket
_vpac270_pcmcia_configure_socket:       ; @vpac270_pcmcia_configure_socket
	.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, x1
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _GPIO16_VPAC270_CF_RESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GPIO16_VPAC270_CF_RESET@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _SS_RESET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SS_RESET@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w1, w9, w8
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _GPIO11_VPAC270_PCMCIA_RESET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GPIO11_VPAC270_PCMCIA_RESET@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w8, [x19]
Lloh9:
	adrp	x9, _SS_RESET@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SS_RESET@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w1, w9, w8
	bl	_gpio_set_value
Lloh12:
	adrp	x8, _GPIO107_VPAC270_PCMCIA_PPEN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GPIO107_VPAC270_PCMCIA_PPEN@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	w8, [x19, #4]
	cmp	w8, #33
	mov	w9, #50
	ccmp	w8, w9, #4, ne
	cset	w1, ne
LBB0_3:
	bl	_gpio_set_value
	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 AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GPIO11_VPAC270_PCMCIA_RESET,4,2 ; @GPIO11_VPAC270_PCMCIA_RESET
	.comm	_SS_RESET,4,2                   ; @SS_RESET
	.comm	_GPIO107_VPAC270_PCMCIA_PPEN,4,2 ; @GPIO107_VPAC270_PCMCIA_PPEN
	.comm	_GPIO16_VPAC270_CF_RESET,4,2    ; @GPIO16_VPAC270_CF_RESET
	.no_dead_strip	_vpac270_pcmcia_configure_socket
.subsections_via_symbols
