	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p54_setup_mac                  ## -- Begin function p54_setup_mac
	.p2align	4, 0x90
_p54_setup_mac:                         ## @p54_setup_mac
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_P54_HDR_FLAG_CONTROL_OPSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_P54_CONTROL_TYPE_SETUP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	$192, %edx
	callq	_p54_alloc_skb
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	$192, %esi
	callq	_skb_put
	movq	%rax, %rbx
	movq	48(%r15), %rax
	movq	_IEEE80211_CONF_IDLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_3
## %bb.9:
	movq	_P54_FILTER_TYPE_HIBERNATE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_10
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
LBB0_3:
	movl	(%r15), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_4
## %bb.5:
	cltq
	leaq	l_switch.table.p54_setup_mac(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_P54_FILTER_TYPE_HIBERNATE@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %r12d
	movq	_FIF_OTHER_BSS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r15)
	je	LBB0_10
## %bb.7:
	movq	_P54_FILTER_TYPE_PROMISCUOUS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	je	LBB0_10
## %bb.8:
	movq	_P54_FILTER_TYPE_TRANSPARENT@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
LBB0_10:
	movl	%r12d, %edi
	callq	_cpu_to_le16
	movq	%rax, 184(%rbx)
	movl	180(%rbx), %edi
	movl	44(%r15), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	callq	_memcpy
	movl	176(%rbx), %edi
	movl	40(%r15), %esi
	movl	(%r13), %edx
	callq	_memcpy
	movl	8(%r15), %eax
	andl	$2, %eax
	movl	%eax, (%rbx)
	movq	$0, 168(%rbx)
	cmpl	$1279, 12(%r15)                 ## imm = 0x4FF
	jg	LBB0_12
## %bb.11:
	movl	16(%r15), %edi
	callq	_cpu_to_le32
	movq	%rax, 160(%rbx)
	movl	152(%rbx), %edi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	20(%r15), %edi
	callq	_cpu_to_le32
	movq	%rax, 144(%rbx)
	movl	24(%r15), %edi
	callq	_cpu_to_le16
	movq	%rax, 136(%rbx)
	movl	28(%r15), %edi
	callq	_cpu_to_le16
	movq	%rax, 128(%rbx)
	movl	32(%r15), %edi
	callq	_cpu_to_le16
	movq	%rax, 120(%rbx)
	xorl	%edi, %edi
	callq	_cpu_to_le16
	movq	%rax, 112(%rbx)
	jmp	LBB0_13
LBB0_12:
	movl	20(%r15), %edi
	callq	_cpu_to_le32
	movq	%rax, 104(%rbx)
	movl	24(%r15), %edi
	callq	_cpu_to_le16
	movq	%rax, 96(%rbx)
	movl	28(%r15), %edi
	callq	_cpu_to_le16
	movq	%rax, 88(%rbx)
	movl	32(%r15), %edi
	callq	_cpu_to_le16
	movq	%rax, 80(%rbx)
	movl	$48896, %edi                    ## imm = 0xBF00
	callq	_cpu_to_le16
	movq	%rax, 72(%rbx)
	movl	16(%r15), %edi
	callq	_cpu_to_le32
	movq	%rax, 64(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rbx)
	movups	%xmm0, 48(%rbx)
	movl	$644245094, %edi                ## imm = 0x26666666
	callq	_cpu_to_le32
	movq	%rax, 24(%rbx)
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_cpu_to_le16
	movq	%rax, 16(%rbx)
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_cpu_to_le16
	movq	%rax, 8(%rbx)
LBB0_13:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_p54_tx
	movq	_P54_FILTER_TYPE_HIBERNATE@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpl	(%rax), %r12d
	sete	%cl
	movl	%ecx, 36(%r15)
	xorl	%eax, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_P54_HDR_FLAG_CONTROL_OPSET,4,2 ## @P54_HDR_FLAG_CONTROL_OPSET
	.comm	_P54_CONTROL_TYPE_SETUP,4,2     ## @P54_CONTROL_TYPE_SETUP
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IEEE80211_CONF_IDLE,4,2        ## @IEEE80211_CONF_IDLE
	.comm	_P54_FILTER_TYPE_STATION,4,2    ## @P54_FILTER_TYPE_STATION
	.comm	_P54_FILTER_TYPE_AP,4,2         ## @P54_FILTER_TYPE_AP
	.comm	_P54_FILTER_TYPE_IBSS,4,2       ## @P54_FILTER_TYPE_IBSS
	.comm	_P54_FILTER_TYPE_PROMISCUOUS,4,2 ## @P54_FILTER_TYPE_PROMISCUOUS
	.comm	_P54_FILTER_TYPE_HIBERNATE,4,2  ## @P54_FILTER_TYPE_HIBERNATE
	.comm	_FIF_OTHER_BSS,4,2              ## @FIF_OTHER_BSS
	.comm	_P54_FILTER_TYPE_TRANSPARENT,4,2 ## @P54_FILTER_TYPE_TRANSPARENT
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.p54_setup_mac
l_switch.table.p54_setup_mac:
	.quad	_P54_FILTER_TYPE_STATION
	.quad	_P54_FILTER_TYPE_PROMISCUOUS
	.quad	_P54_FILTER_TYPE_IBSS
	.quad	_P54_FILTER_TYPE_AP
	.quad	_P54_FILTER_TYPE_IBSS

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p54_setup_mac                  ; -- Begin function p54_setup_mac
	.p2align	2
_p54_setup_mac:                         ; @p54_setup_mac
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, _P54_HDR_FLAG_CONTROL_OPSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _P54_HDR_FLAG_CONTROL_OPSET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _P54_CONTROL_TYPE_SETUP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _P54_CONTROL_TYPE_SETUP@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	mov	w2, #192
	bl	_p54_alloc_skb
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	w1, #192
	bl	_skb_put
	mov	x21, x0
	ldr	x8, [x19, #48]
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _IEEE80211_CONF_IDLE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IEEE80211_CONF_IDLE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x23, _P54_FILTER_TYPE_HIBERNATE@GOTPAGE
Lloh13:
	ldr	x23, [x23, _P54_FILTER_TYPE_HIBERNATE@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	ldr	w22, [x23]
	b	LBB0_9
LBB0_3:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_4:
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_6
; %bb.5:
Lloh17:
	adrp	x9, l_switch.table.p54_setup_mac@PAGE
Lloh18:
	add	x9, x9, l_switch.table.p54_setup_mac@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_7
LBB0_6:
Lloh19:
	adrp	x8, _P54_FILTER_TYPE_HIBERNATE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _P54_FILTER_TYPE_HIBERNATE@GOTPAGEOFF]
LBB0_7:
	ldr	w22, [x8]
	ldr	w8, [x19, #4]
Lloh21:
	adrp	x9, _FIF_OTHER_BSS@GOTPAGE
Lloh22:
	ldr	x9, [x9, _FIF_OTHER_BSS@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh24:
	adrp	x9, _P54_FILTER_TYPE_PROMISCUOUS@GOTPAGE
Lloh25:
	ldr	x9, [x9, _P54_FILTER_TYPE_PROMISCUOUS@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	cmp	w8, #0
	ccmp	w22, w9, #4, ne
	b.eq	LBB0_9
; %bb.8:
Lloh27:
	adrp	x8, _P54_FILTER_TYPE_TRANSPARENT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _P54_FILTER_TYPE_TRANSPARENT@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	orr	w22, w8, w22
LBB0_9:
	mov	x0, x22
	bl	_cpu_to_le16
	str	x0, [x21, #184]
	ldr	w0, [x21, #180]
	ldr	w1, [x19, #44]
Lloh30:
	adrp	x24, _ETH_ALEN@GOTPAGE
Lloh31:
	ldr	x24, [x24, _ETH_ALEN@GOTPAGEOFF]
	ldr	w2, [x24]
	bl	_memcpy
	ldr	w0, [x21, #176]
	ldr	w1, [x19, #40]
	ldr	w2, [x24]
	bl	_memcpy
	ldp	w8, w9, [x19, #8]
	and	w8, w8, #0x2
	str	w8, [x21]
	str	xzr, [x21, #168]
	cmp	w9, #1279
	b.gt	LBB0_11
; %bb.10:
	ldr	w0, [x19, #16]
	bl	_cpu_to_le32
	str	x0, [x21, #160]
	ldr	w0, [x21, #152]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w0, [x19, #20]
	bl	_cpu_to_le32
	str	x0, [x21, #144]
	ldr	w0, [x19, #24]
	bl	_cpu_to_le16
	str	x0, [x21, #136]
	ldr	w0, [x19, #28]
	bl	_cpu_to_le16
	str	x0, [x21, #128]
	ldr	w0, [x19, #32]
	bl	_cpu_to_le16
	str	x0, [x21, #120]
	mov	w0, #0
	bl	_cpu_to_le16
	str	x0, [x21, #112]
	b	LBB0_12
LBB0_11:
	ldr	w0, [x19, #20]
	bl	_cpu_to_le32
	str	x0, [x21, #104]
	ldr	w0, [x19, #24]
	bl	_cpu_to_le16
	str	x0, [x21, #96]
	ldr	w0, [x19, #28]
	bl	_cpu_to_le16
	str	x0, [x21, #88]
	ldr	w0, [x19, #32]
	bl	_cpu_to_le16
	str	x0, [x21, #80]
	mov	w0, #48896
	bl	_cpu_to_le16
	str	x0, [x21, #72]
	ldr	w0, [x19, #16]
	bl	_cpu_to_le32
	str	x0, [x21, #64]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x21, #32]
	mov	w0, #26214
	movk	w0, #9830, lsl #16
	bl	_cpu_to_le32
	str	x0, [x21, #24]
	mov	w0, #65535
	bl	_cpu_to_le16
	str	x0, [x21, #16]
	mov	w0, #65535
	bl	_cpu_to_le16
	str	x0, [x21, #8]
LBB0_12:
	mov	x0, x19
	mov	x1, x20
	bl	_p54_tx
	mov	w0, #0
	ldr	w8, [x23]
	cmp	w22, w8
	cset	w8, eq
	str	w8, [x19, #36]
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_P54_HDR_FLAG_CONTROL_OPSET,4,2 ; @P54_HDR_FLAG_CONTROL_OPSET
	.comm	_P54_CONTROL_TYPE_SETUP,4,2     ; @P54_CONTROL_TYPE_SETUP
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IEEE80211_CONF_IDLE,4,2        ; @IEEE80211_CONF_IDLE
	.comm	_P54_FILTER_TYPE_STATION,4,2    ; @P54_FILTER_TYPE_STATION
	.comm	_P54_FILTER_TYPE_AP,4,2         ; @P54_FILTER_TYPE_AP
	.comm	_P54_FILTER_TYPE_IBSS,4,2       ; @P54_FILTER_TYPE_IBSS
	.comm	_P54_FILTER_TYPE_PROMISCUOUS,4,2 ; @P54_FILTER_TYPE_PROMISCUOUS
	.comm	_P54_FILTER_TYPE_HIBERNATE,4,2  ; @P54_FILTER_TYPE_HIBERNATE
	.comm	_FIF_OTHER_BSS,4,2              ; @FIF_OTHER_BSS
	.comm	_P54_FILTER_TYPE_TRANSPARENT,4,2 ; @P54_FILTER_TYPE_TRANSPARENT
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.p54_setup_mac
l_switch.table.p54_setup_mac:
	.quad	_P54_FILTER_TYPE_STATION
	.quad	_P54_FILTER_TYPE_PROMISCUOUS
	.quad	_P54_FILTER_TYPE_IBSS
	.quad	_P54_FILTER_TYPE_AP
	.quad	_P54_FILTER_TYPE_IBSS

.subsections_via_symbols
