	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p54_remove_interface
_p54_remove_interface:                  ## @p54_remove_interface
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	$0, 24(%rbx)
	movl	20(%rbx), %edi
	callq	_le32_to_cpu
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	20(%rbx), %esi
	movq	%rbx, %rdi
	callq	_p54_tx_cancel
	leaq	16(%rbx), %rdi
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_wait_for_completion_interruptible_timeout
LBB0_2:
	movq	_NL80211_IFTYPE_MONITOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movl	8(%rbx), %edi
	callq	_eth_zero_addr
	movl	4(%rbx), %edi
	callq	_eth_zero_addr
	movq	%rbx, %rdi
	callq	_p54_setup_mac
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HZ,4,2                         ## @HZ
	.comm	_NL80211_IFTYPE_MONITOR,4,2     ## @NL80211_IFTYPE_MONITOR
	.no_dead_strip	_p54_remove_interface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p54_remove_interface
_p54_remove_interface:                  ; @p54_remove_interface
	.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
	ldr	x19, [x0]
	mov	x0, x19
	bl	_mutex_lock
	str	xzr, [x19, #24]
	ldr	w0, [x19, #20]
	bl	_le32_to_cpu
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w1, [x19, #20]
	mov	x0, x19
	bl	_p54_tx_cancel
	add	x0, x19, #16
Lloh0:
	adrp	x8, _HZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_wait_for_completion_interruptible_timeout
LBB0_2:
Lloh3:
	adrp	x8, _NL80211_IFTYPE_MONITOR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NL80211_IFTYPE_MONITOR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	ldr	w0, [x19, #8]
	bl	_eth_zero_addr
	ldr	w0, [x19, #4]
	bl	_eth_zero_addr
	mov	x0, x19
	bl	_p54_setup_mac
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HZ,4,2                         ; @HZ
	.comm	_NL80211_IFTYPE_MONITOR,4,2     ; @NL80211_IFTYPE_MONITOR
	.no_dead_strip	_p54_remove_interface
.subsections_via_symbols
