	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function il4965_pci_remove
_il4965_pci_remove:                     ## @il4965_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_pci_get_drvdata
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	leaq	60(%rax), %rdi
	callq	_wait_for_completion
	leaq	L_.str(%rip), %rdi
	callq	_D_INFO
	movq	%rbx, %rdi
	callq	_il_dbgfs_unregister
	movq	_il_attribute_group@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_sysfs_remove_group
	movq	_S_EXIT_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	56(%rbx), %rsi
	callq	_set_bit
	movq	%rbx, %rdi
	callq	_il_leds_exit
	cmpq	$0, 48(%rbx)
	je	LBB0_3
## %bb.2:
	movl	(%rbx), %edi
	callq	_ieee80211_unregister_hw
	movq	$0, 48(%rbx)
	jmp	LBB0_4
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rbx, %rdi
	callq	_il4965_down
LBB0_4:
	movq	%rbx, %rdi
	callq	_il_apm_stop
	leaq	40(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	callq	_il_disable_interrupts
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rdi
	callq	_il4965_synchronize_irq
	movq	%rbx, %rdi
	callq	_il4965_dealloc_ucode_pci
	cmpq	$0, 32(%rbx)
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rsi
	addq	$32, %rsi
	movq	%rbx, %rdi
	callq	_il4965_rx_queue_free
LBB0_6:
	movq	%rbx, %rdi
	callq	_il4965_hw_txq_ctx_free
	movq	%rbx, %rdi
	callq	_il_eeprom_free
	movq	24(%rbx), %rdi
	callq	_flush_workqueue
	movq	24(%rbx), %rdi
	callq	_destroy_workqueue
	movq	$0, 24(%rbx)
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_free_irq
	movq	16(%rbx), %rdi
	callq	_pci_disable_msi
	movl	8(%rbx), %edi
	callq	_iounmap
	movq	%r14, %rdi
	callq	_pci_release_regions
	movq	%r14, %rdi
	callq	_pci_disable_device
	movq	%rbx, %rdi
	callq	_il4965_uninit_drv
	movl	4(%rbx), %edi
	callq	_dev_kfree_skb
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ieee80211_free_hw              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"*** UNLOAD DRIVER ***\n"

	.comm	_il_attribute_group,4,2         ## @il_attribute_group
	.comm	_S_EXIT_PENDING,4,2             ## @S_EXIT_PENDING
	.no_dead_strip	_il4965_pci_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function il4965_pci_remove
_il4965_pci_remove:                     ; @il4965_pci_remove
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	bl	_pci_get_drvdata
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	add	x0, x0, #60
	bl	_wait_for_completion
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_D_INFO
	mov	x0, x19
	bl	_il_dbgfs_unregister
Lloh2:
	adrp	x1, _il_attribute_group@GOTPAGE
Lloh3:
	ldr	x1, [x1, _il_attribute_group@GOTPAGEOFF]
	mov	x0, x20
	bl	_sysfs_remove_group
Lloh4:
	adrp	x8, _S_EXIT_PENDING@GOTPAGE
Lloh5:
	ldr	x8, [x8, _S_EXIT_PENDING@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	add	x1, x19, #56
	bl	_set_bit
	mov	x0, x19
	bl	_il_leds_exit
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	w0, [x19]
	bl	_ieee80211_unregister_hw
	str	xzr, [x19, #48]
	b	LBB0_5
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x0, x19
	bl	_il4965_down
LBB0_5:
	mov	x0, x19
	bl	_il_apm_stop
	add	x21, x19, #40
	mov	x0, x21
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_il_disable_interrupts
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	bl	_il4965_synchronize_irq
	mov	x0, x19
	bl	_il4965_dealloc_ucode_pci
	mov	x1, x19
	ldr	x8, [x1, #32]!
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_il4965_rx_queue_free
LBB0_7:
	mov	x0, x19
	bl	_il4965_hw_txq_ctx_free
	mov	x0, x19
	bl	_il_eeprom_free
	ldr	x0, [x19, #24]
	bl	_flush_workqueue
	ldr	x0, [x19, #24]
	bl	_destroy_workqueue
	str	xzr, [x19, #24]
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	mov	x1, x19
	bl	_free_irq
	ldr	x0, [x19, #16]
	bl	_pci_disable_msi
	ldr	w0, [x19, #8]
	bl	_iounmap
	mov	x0, x20
	bl	_pci_release_regions
	mov	x0, x20
	bl	_pci_disable_device
	mov	x0, x19
	bl	_il4965_uninit_drv
	ldr	w0, [x19, #4]
	bl	_dev_kfree_skb
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ieee80211_free_hw
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"*** UNLOAD DRIVER ***\n"

	.comm	_il_attribute_group,4,2         ; @il_attribute_group
	.comm	_S_EXIT_PENDING,4,2             ; @S_EXIT_PENDING
	.no_dead_strip	_il4965_pci_remove
.subsections_via_symbols
