	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcmcia_requery
_pcmcia_requery:                        ## @pcmcia_requery
	.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	_SOCKET_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_11
## %bb.1:
	movq	%rdi, %rbx
	cmpq	$0, 8(%rdi)
	je	LBB0_12
## %bb.2:
	movq	_pcmcia_requery_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_pcmcia_bus_type@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_bus_for_each_dev
	cmpq	$0, 32(%rbx)
	je	LBB0_7
## %bb.3:
	movl	8(%rbx), %r14d
	movq	_BIND_FN_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CISTPL_LONGLINK_MFC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-32(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_pccard_read_tuple
	movl	$1, %ecx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	-32(%rbp), %ecx
LBB0_5:
	cmpl	%r14d, %ecx
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_pcmcia_card_remove
	movq	$0, 8(%rbx)
	movq	%rbx, %rdi
	callq	_pcmcia_card_add
LBB0_7:
	leaq	24(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	16(%rbx), %r15d
	movq	%r14, %rdi
	callq	_mutex_unlock
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_pcmcia_device_add
LBB0_9:
	movq	_pcmcia_bus_type@GOTPCREL(%rip), %rdi
	callq	_bus_rescan_devices
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	addq	$20, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_warn
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pcmcia_card_add                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCKET_PRESENT,4,2             ## @SOCKET_PRESENT
	.comm	_pcmcia_bus_type,4,2            ## @pcmcia_bus_type
	.comm	_pcmcia_requery_callback,4,2    ## @pcmcia_requery_callback
	.comm	_BIND_FN_ALL,4,2                ## @BIND_FN_ALL
	.comm	_CISTPL_LONGLINK_MFC,4,2        ## @CISTPL_LONGLINK_MFC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rescanning the bus failed\n"

	.no_dead_strip	_pcmcia_requery
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcmcia_requery
_pcmcia_requery:                        ; @pcmcia_requery
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _SOCKET_PRESENT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SOCKET_PRESENT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_10
; %bb.2:
Lloh3:
	adrp	x8, _pcmcia_requery_callback@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pcmcia_requery_callback@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x0, _pcmcia_bus_type@GOTPAGE
Lloh7:
	ldr	x0, [x0, _pcmcia_bus_type@GOTPAGEOFF]
	mov	x1, #0
	mov	x2, #0
	bl	_bus_for_each_dev
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	w20, [x19, #8]
Lloh8:
	adrp	x8, _BIND_FN_ALL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BIND_FN_ALL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _CISTPL_LONGLINK_MFC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CISTPL_LONGLINK_MFC@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x19
	bl	_pccard_read_tuple
	ldr	w8, [sp, #8]
	cmp	w0, #0
	csinc	w8, w8, wzr, eq
	cmp	w8, w20
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	mov	x1, #0
	bl	_pcmcia_card_remove
	str	xzr, [x19, #8]
	mov	x0, x19
	bl	_pcmcia_card_add
LBB0_5:
	add	x20, x19, #24
	mov	x0, x20
	bl	_mutex_lock
	ldr	w21, [x19, #16]
	mov	x0, x20
	bl	_mutex_unlock
	cbz	w21, LBB0_7
; %bb.6:
	mov	x0, x19
	mov	w1, #0
	bl	_pcmcia_device_add
LBB0_7:
Lloh14:
	adrp	x0, _pcmcia_bus_type@GOTPAGE
Lloh15:
	ldr	x0, [x0, _pcmcia_bus_type@GOTPAGEOFF]
	bl	_bus_rescan_devices
	cbz	x0, LBB0_9
; %bb.8:
	add	x0, x19, #20
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_pcmcia_card_add
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCKET_PRESENT,4,2             ; @SOCKET_PRESENT
	.comm	_pcmcia_bus_type,4,2            ; @pcmcia_bus_type
	.comm	_pcmcia_requery_callback,4,2    ; @pcmcia_requery_callback
	.comm	_BIND_FN_ALL,4,2                ; @BIND_FN_ALL
	.comm	_CISTPL_LONGLINK_MFC,4,2        ; @CISTPL_LONGLINK_MFC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rescanning the bus failed\n"

	.no_dead_strip	_pcmcia_requery
.subsections_via_symbols
