	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcmcia_device_remove
_pcmcia_device_remove:                  ## @pcmcia_device_remove
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_to_pcmcia_dev
	movq	%rax, %r12
	movl	(%rbx), %edi
	callq	_to_pcmcia_drv
	movq	%rax, %r14
	leaq	L_.str(%rip), %rsi
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_dev_dbg
	movq	40(%r12), %rdi
	cmpq	$0, 8(%rdi)
	je	LBB0_4
## %bb.1:
	cmpq	$0, (%rdi)
	jle	LBB0_4
## %bb.2:
	cmpq	$0, (%r12)
	jne	LBB0_4
## %bb.3:
	movq	%r12, %rsi
	callq	_pcmcia_card_remove
LBB0_4:
	testq	%r14, %r14
	je	LBB0_17
## %bb.5:
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	callq	*%rax
LBB0_7:
	cmpq	$0, 32(%r12)
	jne	LBB0_10
## %bb.8:
	cmpq	$0, 24(%r12)
	jne	LBB0_10
## %bb.9:
	cmpq	$0, 16(%r12)
	je	LBB0_11
LBB0_10:
	movl	4(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_info
LBB0_11:
	movq	_MAX_WIN@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_16
## %bb.12:
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	incl	%ebx
	cmpl	(%r13), %ebx
	jge	LBB0_16
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	8(%r12), %r15d
	movl	%ebx, %edi
	callq	_CLIENT_WIN_REQ
	testl	%r15d, %eax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	4(%r14), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_info
	jmp	LBB0_15
LBB0_16:
	movq	%r12, %rdi
	callq	_pcmcia_put_dev
	movl	(%r14), %edi
	callq	_module_put
LBB0_17:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"removing device\n"

L_.str.1:                               ## @.str.1
	.asciz	"pcmcia: driver %s did not release config properly\n"

	.comm	_MAX_WIN,4,2                    ## @MAX_WIN
L_.str.2:                               ## @.str.2
	.asciz	"pcmcia: driver %s did not release window properly\n"

	.no_dead_strip	_pcmcia_device_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcmcia_device_remove
_pcmcia_device_remove:                  ; @pcmcia_device_remove
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	bl	_to_pcmcia_dev
	mov	x20, x0
	ldr	w0, [x19]
	bl	_to_pcmcia_drv
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	x0, [x20, #40]
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x8, [x0]
	cmp	x8, #1
	b.lt	LBB0_4
; %bb.2:
	ldr	x8, [x20]
	cbnz	x8, LBB0_4
; %bb.3:
	mov	x1, x20
	bl	_pcmcia_card_remove
LBB0_4:
	cbz	x21, LBB0_17
; %bb.5:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x20
	blr	x8
LBB0_7:
	ldr	x8, [x20, #32]
	cbnz	x8, LBB0_10
; %bb.8:
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_10
; %bb.9:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_11
LBB0_10:
	ldr	w2, [x21, #4]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_11:
Lloh4:
	adrp	x24, _MAX_WIN@GOTPAGE
Lloh5:
	ldr	x24, [x24, _MAX_WIN@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.12:
	mov	w22, #0
Lloh6:
	adrp	x23, l_.str.2@PAGE
Lloh7:
	add	x23, x23, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	w22, w22, #1
	ldr	w8, [x24]
	cmp	w22, w8
	b.ge	LBB0_16
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w25, [x20, #8]
	mov	x0, x22
	bl	_CLIENT_WIN_REQ
	tst	w0, w25
	b.eq	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w2, [x21, #4]
	mov	x0, x19
	mov	x1, x23
	bl	_dev_info
	b	LBB0_13
LBB0_16:
	mov	x0, x20
	bl	_pcmcia_put_dev
	ldr	w0, [x21]
	bl	_module_put
LBB0_17:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"removing device\n"

l_.str.1:                               ; @.str.1
	.asciz	"pcmcia: driver %s did not release config properly\n"

	.comm	_MAX_WIN,4,2                    ; @MAX_WIN
l_.str.2:                               ; @.str.2
	.asciz	"pcmcia: driver %s did not release window properly\n"

	.no_dead_strip	_pcmcia_device_remove
.subsections_via_symbols
