	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_deinit_device
_i40iw_deinit_device:                   ## @i40iw_deinit_device
	.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, %rbx
	movq	56(%rdi), %r14
	movl	(%rdi), %esi
	leaq	L_.str(%rip), %rdi
	callq	_i40iw_pr_info
	movq	40(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_destroy_workqueue
LBB0_2:
	movl	(%rbx), %esi
	leal	-128(%rsi), %eax
	cmpl	$11, %eax
	ja	LBB0_18
## %bb.3:
	leaq	48(%rbx), %r15
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movl	$0, 32(%rbx)
	movq	%rbx, %rdi
	callq	_i40iw_port_ibevent
	movl	28(%rbx), %edi
	callq	_i40iw_destroy_rdma_device
LBB0_5:
	cmpl	$0, 16(%rbx)
	jne	LBB0_7
## %bb.6:
	movl	24(%rbx), %esi
	movq	%rbx, %rdi
	callq	_i40iw_del_macip_entry
LBB0_7:
	movl	20(%rbx), %esi
	movq	%r15, %rdi
	callq	_i40iw_destroy_pble_pool
LBB0_8:
	movq	%rbx, %rdi
	callq	_i40iw_dele_ceqs
LBB0_9:
	movq	%rbx, %rdi
	callq	_i40iw_destroy_aeq
LBB0_10:
	leaq	8(%rbx), %rdi
	movq	_I40IW_PUDA_RSRC_TYPE_IEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%rbx), %edx
	callq	_i40iw_puda_dele_resources
LBB0_11:
	leaq	8(%rbx), %rdi
	movq	_I40IW_PUDA_RSRC_TYPE_ILQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%rbx), %edx
	callq	_i40iw_puda_dele_resources
LBB0_12:
	movq	%rbx, %rdi
	callq	_i40iw_destroy_ccq
LBB0_13:
	movl	16(%rbx), %ecx
	movl	48(%rbx), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_i40iw_del_hmc_objects
LBB0_14:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_i40iw_destroy_cqp
LBB0_15:
	leaq	12(%rbx), %rdi
	callq	_i40iw_cleanup_cm_core
	cmpl	$0, 8(%rbx)
	je	LBB0_17
## %bb.16:
	leaq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_i40iw_vsi_stats_free
	movl	(%r15), %edi
	callq	_kfree
LBB0_17:
	movq	%rbx, %rdi
	callq	_i40iw_del_init_mem
LBB0_19:
	movq	%r14, %rdi
	callq	_i40iw_find_i40e_handler
	movl	%eax, %edi
	callq	_i40iw_del_handler
	movl	4(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_18:
	leaq	L_.str.1(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_i40iw_pr_err
	jmp	LBB0_19
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_7
	.long	L0_0_set_5
	.long	L0_0_set_18
	.long	L0_0_set_15
	.long	L0_0_set_11
	.long	L0_0_set_10
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_8
	.long	L0_0_set_12
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"state = %d\n"

	.comm	_I40IW_PUDA_RSRC_TYPE_IEQ,4,2   ## @I40IW_PUDA_RSRC_TYPE_IEQ
	.comm	_I40IW_PUDA_RSRC_TYPE_ILQ,4,2   ## @I40IW_PUDA_RSRC_TYPE_ILQ
L_.str.1:                               ## @.str.1
	.asciz	"bad init_state = %d\n"

	.no_dead_strip	_i40iw_deinit_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40iw_deinit_device
_i40iw_deinit_device:                   ; @i40iw_deinit_device
	.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	x19, x0
	ldr	x20, [x0, #56]
	ldr	w1, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_i40iw_pr_info
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_destroy_workqueue
LBB0_2:
	ldr	w1, [x19]
	sub	w8, w1, #128
	cmp	w8, #11
	b.hi	LBB0_19
; %bb.3:
	add	x21, x19, #48
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	str	wzr, [x19, #32]
	mov	x0, x19
	bl	_i40iw_port_ibevent
	ldr	w0, [x19, #28]
	bl	_i40iw_destroy_rdma_device
LBB0_5:
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_7
; %bb.6:
	ldr	w1, [x19, #24]
	mov	x0, x19
	bl	_i40iw_del_macip_entry
LBB0_7:
	ldr	w1, [x19, #20]
	mov	x0, x21
	bl	_i40iw_destroy_pble_pool
LBB0_8:
	mov	x0, x19
	bl	_i40iw_dele_ceqs
LBB0_9:
	mov	x0, x19
	bl	_i40iw_destroy_aeq
LBB0_10:
	add	x0, x19, #8
Lloh4:
	adrp	x8, _I40IW_PUDA_RSRC_TYPE_IEQ@GOTPAGE
Lloh5:
	ldr	x8, [x8, _I40IW_PUDA_RSRC_TYPE_IEQ@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	ldr	w2, [x19, #16]
	bl	_i40iw_puda_dele_resources
LBB0_11:
	add	x0, x19, #8
Lloh7:
	adrp	x8, _I40IW_PUDA_RSRC_TYPE_ILQ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _I40IW_PUDA_RSRC_TYPE_ILQ@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	w2, [x19, #16]
	bl	_i40iw_puda_dele_resources
LBB0_12:
	mov	x0, x19
	bl	_i40iw_destroy_ccq
LBB0_13:
	ldr	w1, [x19, #48]
	ldr	w3, [x19, #16]
	mov	x0, x21
	mov	w2, #1
	bl	_i40iw_del_hmc_objects
LBB0_14:
	mov	x0, x19
	mov	w1, #1
	bl	_i40iw_destroy_cqp
LBB0_15:
	add	x0, x19, #12
	bl	_i40iw_cleanup_cm_core
	mov	x21, x19
	ldr	w8, [x21, #8]!
	cbz	w8, LBB0_17
; %bb.16:
	mov	x0, x21
	bl	_i40iw_vsi_stats_free
	ldr	w0, [x21]
	bl	_kfree
LBB0_17:
	mov	x0, x19
	bl	_i40iw_del_init_mem
LBB0_18:
	mov	x0, x20
	bl	_i40iw_find_i40e_handler
	bl	_i40iw_del_handler
	ldr	w0, [x19, #4]
	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	_kfree
LBB0_19:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_i40iw_pr_err
	b	LBB0_18
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_5-LBB0_4)>>2
	.byte	(LBB0_19-LBB0_4)>>2
	.byte	(LBB0_15-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
	.byte	(LBB0_14-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_12-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"state = %d\n"

	.comm	_I40IW_PUDA_RSRC_TYPE_IEQ,4,2   ; @I40IW_PUDA_RSRC_TYPE_IEQ
	.comm	_I40IW_PUDA_RSRC_TYPE_ILQ,4,2   ; @I40IW_PUDA_RSRC_TYPE_ILQ
l_.str.1:                               ; @.str.1
	.asciz	"bad init_state = %d\n"

	.no_dead_strip	_i40iw_deinit_device
.subsections_via_symbols
