	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pd6729_pci_remove
_pd6729_pci_remove:                     ## @pd6729_pci_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_pci_get_drvdata
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_MAX_SOCKETS@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_3
## %bb.1:
	xorl	%r13d, %r13d
	movq	_I365_CSCINT@GOTPCREL(%rip), %r14
	movq	_I365_INTCTL@GOTPCREL(%rip), %r15
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_indirect_write
	movl	(%r15), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_indirect_write
	leaq	4(%rbx), %rdi
	callq	_pcmcia_unregister_socket
	incq	%r13
	movslq	(%r12), %rax
	addq	$8, %rbx
	cmpq	%rax, %r13
	jl	LBB0_2
LBB0_3:
	movq	_irq_mode@GOTPCREL(%rip), %rax
	cmpl	$1, (%rax)
	jne	LBB0_5
## %bb.4:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_free_irq
	jmp	LBB0_6
LBB0_5:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_del_timer_sync
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_6:
	movq	%rbx, %rdi
	callq	_pci_release_regions
	movq	%rbx, %rdi
	callq	_pci_disable_device
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_SOCKETS,4,2                ## @MAX_SOCKETS
	.comm	_I365_CSCINT,4,2                ## @I365_CSCINT
	.comm	_I365_INTCTL,4,2                ## @I365_INTCTL
	.comm	_irq_mode,4,2                   ## @irq_mode
	.no_dead_strip	_pd6729_pci_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pd6729_pci_remove
_pd6729_pci_remove:                     ; @pd6729_pci_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	_pci_get_drvdata
	mov	x20, x0
Lloh0:
	adrp	x22, _MAX_SOCKETS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MAX_SOCKETS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x23, #0
Lloh2:
	adrp	x24, _I365_CSCINT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _I365_CSCINT@GOTPAGEOFF]
Lloh4:
	adrp	x25, _I365_INTCTL@GOTPAGE
Lloh5:
	ldr	x25, [x25, _I365_INTCTL@GOTPAGEOFF]
	mov	x21, x20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	mov	x0, x21
	mov	w2, #0
	bl	_indirect_write
	ldr	w1, [x25]
	mov	x0, x21
	mov	w2, #0
	bl	_indirect_write
	add	x0, x21, #4
	bl	_pcmcia_unregister_socket
	add	x23, x23, #1
	ldrsw	x8, [x22]
	add	x21, x21, #8
	cmp	x23, x8
	b.lt	LBB0_2
LBB0_3:
Lloh6:
	adrp	x8, _irq_mode@GOTPAGE
Lloh7:
	ldr	x8, [x8, _irq_mode@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.4:
	ldr	w0, [x19]
	mov	x1, x20
	bl	_free_irq
	b	LBB0_6
LBB0_5:
	mov	x0, x20
	bl	_del_timer_sync
LBB0_6:
	mov	x0, x19
	bl	_pci_release_regions
	mov	x0, x19
	bl	_pci_disable_device
	mov	x0, x20
	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
	b	_kfree
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_SOCKETS,4,2                ; @MAX_SOCKETS
	.comm	_I365_CSCINT,4,2                ; @I365_CSCINT
	.comm	_I365_INTCTL,4,2                ; @I365_INTCTL
	.comm	_irq_mode,4,2                   ; @irq_mode
	.no_dead_strip	_pd6729_pci_remove
.subsections_via_symbols
