	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_c4iw_dealloc                   ## -- Begin function c4iw_dealloc
	.p2align	4, 0x90
_c4iw_dealloc:                          ## @c4iw_dealloc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	addq	$8, %rdi
	callq	_c4iw_rdev_close
	movq	(%rbx), %rdi
	addq	$48, %rdi
	callq	_xa_empty
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	movq	(%rbx), %rdi
	addq	$44, %rdi
	callq	_xa_empty
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	movq	(%rbx), %rdi
	addq	$40, %rdi
	callq	_xa_empty
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	movq	(%rbx), %rdi
	movl	36(%rdi), %r14d
	addq	$32, %rdi
	callq	_xa_empty
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_wait_event
	movq	(%rbx), %rdi
	addq	$28, %rdi
	callq	_xa_empty
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	movq	(%rbx), %rdi
	addq	$24, %rdi
	callq	_xa_empty
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	movq	(%rbx), %rdi
	movq	16(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rdi
	callq	_iounmap
	movq	(%rbx), %rdi
LBB0_2:
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %rdi
	callq	_iounmap
	movq	(%rbx), %rdi
LBB0_4:
	callq	_ib_dealloc_device
	movq	$0, (%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_c4iw_dealloc                   ; -- Begin function c4iw_dealloc
	.p2align	2
_c4iw_dealloc:                          ; @c4iw_dealloc
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
	add	x0, x8, #8
	bl	_c4iw_rdev_close
	ldr	x8, [x19]
	add	x0, x8, #48
	bl	_xa_empty
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	ldr	x8, [x19]
	add	x0, x8, #44
	bl	_xa_empty
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	ldr	x8, [x19]
	add	x0, x8, #40
	bl	_xa_empty
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	ldr	x8, [x19]
	ldr	w20, [x8, #36]
	add	x0, x8, #32
	bl	_xa_empty
	mov	x1, x0
	mov	x0, x20
	bl	_wait_event
	ldr	x8, [x19]
	add	x0, x8, #28
	bl	_xa_empty
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	ldr	x8, [x19]
	add	x0, x8, #24
	bl	_xa_empty
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	ldr	x0, [x19]
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x8
	bl	_iounmap
	ldr	x0, [x19]
LBB0_2:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x8
	bl	_iounmap
	ldr	x0, [x19]
LBB0_4:
	bl	_ib_dealloc_device
	str	xzr, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
