	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function viper_pcmcia_configure_socket
_viper_pcmcia_configure_socket:         ## @viper_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_viper_get_pdata
	movq	%rax, %r15
	movq	_SS_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	(%rbx), %edi
	callq	*8(%r15)
	movl	4(%rbx), %edx
	cmpl	$33, %edx
	je	LBB0_3
## %bb.1:
	testl	%edx, %edx
	jne	LBB0_4
## %bb.2:
	movl	(%r15), %edi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_gpio_set_value
	jmp	LBB0_5
LBB0_3:
	movl	(%r15), %edi
	movl	$1, %esi
	callq	_gpio_set_value
	jmp	LBB0_5
LBB0_4:
	movq	_arcom_pcmcia_dev@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movl	$-1, %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SS_RESET,4,2                   ## @SS_RESET
	.comm	_arcom_pcmcia_dev,8,3           ## @arcom_pcmcia_dev
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported Vcc:%d\n"

	.no_dead_strip	_viper_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 viper_pcmcia_configure_socket
_viper_pcmcia_configure_socket:         ; @viper_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	x20, x1
	bl	_viper_get_pdata
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w9, [x20]
Lloh0:
	adrp	x10, _SS_RESET@GOTPAGE
Lloh1:
	ldr	x10, [x10, _SS_RESET@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	and	w0, w10, w9
	blr	x8
	ldr	w2, [x20, #4]
	cmp	w2, #33
	b.eq	LBB0_3
; %bb.1:
	cbnz	w2, LBB0_5
; %bb.2:
	ldr	w0, [x19]
	mov	w1, #0
	b	LBB0_4
LBB0_3:
	ldr	w0, [x19]
	mov	w1, #1
LBB0_4:
	bl	_gpio_set_value
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh3:
	adrp	x8, _arcom_pcmcia_dev@GOTPAGE
Lloh4:
	ldr	x8, [x8, _arcom_pcmcia_dev@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	mov	w0, #-1
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SS_RESET,4,2                   ; @SS_RESET
	.comm	_arcom_pcmcia_dev,8,3           ; @arcom_pcmcia_dev
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported Vcc:%d\n"

	.no_dead_strip	_viper_pcmcia_configure_socket
.subsections_via_symbols
