	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcmciamtd_set_vpp
_pcmciamtd_set_vpp:                     ## @pcmciamtd_set_vpp
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movl	%esi, %ecx
	movq	(%rdi), %rdx
	movq	8(%rdx), %rbx
	movq	_CONF_VPP1_CHANGE_VALID@GOTPCREL(%rip), %rax
	movq	_CONF_VPP2_CHANGE_VALID@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rax), %esi
	movl	%esi, -32(%rbp)
	movq	$0, -16(%rbp)
	testl	%ecx, %ecx
	movl	(%rdx), %r8d
	movl	%r8d, %eax
	cmovel	%ecx, %eax
	movl	%eax, -28(%rbp)
	movl	%eax, -24(%rbp)
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	callq	_DEBUG
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_pcmcia_modify_configuration
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_ModifyConfiguration@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_cs_error
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CONF_VPP1_CHANGE_VALID,4,2     ## @CONF_VPP1_CHANGE_VALID
	.comm	_CONF_VPP2_CHANGE_VALID,4,2     ## @CONF_VPP2_CHANGE_VALID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dev = %p on = %d vpp = %d\n"

	.comm	_ModifyConfiguration,4,2        ## @ModifyConfiguration
	.no_dead_strip	_pcmciamtd_set_vpp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcmciamtd_set_vpp
_pcmciamtd_set_vpp:                     ; @pcmciamtd_set_vpp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x3, x1
	ldr	x2, [x0]
	ldr	x19, [x2, #8]
Lloh0:
	adrp	x8, _CONF_VPP1_CHANGE_VALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONF_VPP1_CHANGE_VALID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _CONF_VPP2_CHANGE_VALID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CONF_VPP2_CHANGE_VALID@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [sp, #8]
	str	xzr, [sp, #24]
	ldr	w4, [x2]
	cmp	w1, #0
	csel	w8, wzr, w4, eq
	stp	w8, w8, [sp, #12]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_DEBUG
	add	x1, sp, #8
	mov	x0, x19
	bl	_pcmcia_modify_configuration
	cbz	w0, LBB0_2
; %bb.1:
	mov	x2, x0
Lloh8:
	adrp	x8, _ModifyConfiguration@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ModifyConfiguration@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cs_error
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CONF_VPP1_CHANGE_VALID,4,2     ; @CONF_VPP1_CHANGE_VALID
	.comm	_CONF_VPP2_CHANGE_VALID,4,2     ; @CONF_VPP2_CHANGE_VALID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dev = %p on = %d vpp = %d\n"

	.comm	_ModifyConfiguration,4,2        ; @ModifyConfiguration
	.no_dead_strip	_pcmciamtd_set_vpp
.subsections_via_symbols
