	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p54_start
_p54_start:                             ## @p54_start
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %r12
	leaq	8(%r12), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	callq	*(%r12)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	40(%r12), %rax
	movl	(%rax), %edi
	movl	$2, %esi
	movl	$3, %edx
	movl	$7, %ecx
	movl	$47, %r8d
	callq	_P54_SET_QUEUE
	movq	40(%r12), %rax
	movl	4(%rax), %edi
	movl	$2, %esi
	movl	$7, %edx
	movl	$15, %ecx
	movl	$94, %r8d
	callq	_P54_SET_QUEUE
	movq	40(%r12), %rax
	movl	8(%rax), %edi
	movl	$3, %esi
	movl	$15, %edx
	movl	$1023, %ecx                     ## imm = 0x3FF
	xorl	%r8d, %r8d
	callq	_P54_SET_QUEUE
	movq	40(%r12), %rax
	movl	12(%rax), %edi
	movl	$7, %esi
	movl	$15, %edx
	movl	$1023, %ecx                     ## imm = 0x3FF
	xorl	%r8d, %r8d
	callq	_P54_SET_QUEUE
	movq	%r12, %rdi
	callq	_p54_set_edcf
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movl	32(%r12), %edi
	callq	_eth_broadcast_addr
	movq	_NL80211_IFTYPE_MONITOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r12)
	movq	%r12, %rdi
	callq	_p54_setup_mac
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movq	_NL80211_IFTYPE_UNSPECIFIED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r12)
	jmp	LBB0_5
LBB0_4:
	leaq	24(%r12), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_ieee80211_queue_delayed_work
	movq	$0, 16(%r12)
	movq	%r12, %rdi
	callq	_p54_set_leds
	movl	%eax, %ebx
LBB0_5:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_MONITOR,4,2     ## @NL80211_IFTYPE_MONITOR
	.comm	_NL80211_IFTYPE_UNSPECIFIED,4,2 ## @NL80211_IFTYPE_UNSPECIFIED
	.no_dead_strip	_p54_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p54_start
_p54_start:                             ; @p54_start
	.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	x21, x0
	ldr	x20, [x0]
	add	x19, x20, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x20]
	mov	x0, x21
	blr	x8
	mov	x22, x0
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	x8, [x20, #40]
	ldr	w0, [x8]
	mov	w1, #2
	mov	w2, #3
	mov	w3, #7
	mov	w4, #47
	bl	_P54_SET_QUEUE
	ldr	x8, [x20, #40]
	ldr	w0, [x8, #4]
	mov	w1, #2
	mov	w2, #7
	mov	w3, #15
	mov	w4, #94
	bl	_P54_SET_QUEUE
	ldr	x8, [x20, #40]
	ldr	w0, [x8, #8]
	mov	w1, #3
	mov	w2, #15
	mov	w3, #1023
	mov	w4, #0
	bl	_P54_SET_QUEUE
	ldr	x8, [x20, #40]
	ldr	w0, [x8, #12]
	mov	w1, #7
	mov	w2, #15
	mov	w3, #1023
	mov	w4, #0
	bl	_P54_SET_QUEUE
	mov	x0, x20
	bl	_p54_set_edcf
	mov	x22, x0
	cbnz	w0, LBB0_5
; %bb.2:
	ldr	w0, [x20, #32]
	bl	_eth_broadcast_addr
Lloh0:
	adrp	x8, _NL80211_IFTYPE_MONITOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NL80211_IFTYPE_MONITOR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20, #28]
	mov	x0, x20
	bl	_p54_setup_mac
	cbz	w0, LBB0_4
; %bb.3:
	mov	x22, x0
Lloh3:
	adrp	x8, _NL80211_IFTYPE_UNSPECIFIED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NL80211_IFTYPE_UNSPECIFIED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x20, #28]
	b	LBB0_5
LBB0_4:
	add	x1, x20, #24
	mov	x0, x21
	mov	w2, #0
	bl	_ieee80211_queue_delayed_work
	str	xzr, [x20, #16]
	mov	x0, x20
	bl	_p54_set_leds
	mov	x22, x0
LBB0_5:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_MONITOR,4,2     ; @NL80211_IFTYPE_MONITOR
	.comm	_NL80211_IFTYPE_UNSPECIFIED,4,2 ; @NL80211_IFTYPE_UNSPECIFIED
	.no_dead_strip	_p54_start
.subsections_via_symbols
