	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __ieee80211_data_to_8023
___ieee80211_data_to_8023:              ## @__ieee80211_data_to_8023
	.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	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rdi), %r13
	movq	8(%rdi), %rax
	movq	(%rax), %r12
	movl	$0, (%rsi)
	movl	4(%r12), %edi
	callq	_ieee80211_has_a4
	movq	8(%r13), %rcx
	movq	_NL80211_IFTYPE_AP_VLAN@GOTPCREL(%rip), %r14
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	cmpq	(%r14), %rcx
	jne	LBB0_3
## %bb.2:
	cmpq	$0, 24(%r13)
	je	LBB0_16
LBB0_3:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rax
	movb	$1, %bl
	cmpq	(%rax), %rcx
	jne	LBB0_7
## %bb.4:
	cmpl	$0, 32(%r13)
	sete	%bl
	movl	4(%r12), %edi
	callq	_ieee80211_has_a4
	testq	%rax, %rax
	setne	%al
	xorb	%bl, %al
	movb	$1, %bl
	jne	LBB0_7
## %bb.5:
	cmpl	$0, 32(%r13)
	je	LBB0_16
## %bb.6:
	xorl	%ebx, %ebx
LBB0_7:
	movl	(%r12), %edi
	callq	_is_multicast_ether_addr
	movq	8(%r13), %rdx
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	cmpq	(%r14), %rdx
	jne	LBB0_10
## %bb.9:
	movl	$-1, %eax
	cmpq	$0, 24(%r13)
	jne	LBB0_17
LBB0_10:
	movq	8(%r15), %rdi
	movl	16(%r13), %esi
	callq	_ieee80211_data_to_8023
	testl	%eax, %eax
	js	LBB0_17
## %bb.11:
	movq	(%r15), %rax
	movq	8(%r15), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rax), %rcx
	jne	LBB0_14
## %bb.12:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	jmp	LBB0_15
LBB0_16:
	movl	$-1, %eax
	jmp	LBB0_17
LBB0_14:
	movl	$-1, %eax
	testb	%bl, %bl
	je	LBB0_17
LBB0_15:
	xorl	%eax, %eax
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_AP_VLAN,8,3     ## @NL80211_IFTYPE_AP_VLAN
	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.no_dead_strip	___ieee80211_data_to_8023
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __ieee80211_data_to_8023
___ieee80211_data_to_8023:              ; @__ieee80211_data_to_8023
	.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, x1
	mov	x20, x0
	ldp	x21, x8, [x0]
	ldr	x22, [x8]
	str	wzr, [x1]
	ldr	w0, [x22, #4]
	bl	_ieee80211_has_a4
	ldr	x8, [x21, #8]
Lloh0:
	adrp	x23, _NL80211_IFTYPE_AP_VLAN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NL80211_IFTYPE_AP_VLAN@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x0, #0
	ccmp	x8, x9, #0, ne
	b.ne	LBB0_2
; %bb.1:
	ldr	x9, [x21, #24]
	cbz	x9, LBB0_14
LBB0_2:
Lloh2:
	adrp	x9, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x21, #32]
	cmp	w8, #0
	cset	w24, eq
	ldr	w0, [x22, #4]
	bl	_ieee80211_has_a4
	cmp	x0, #0
	cset	w8, ne
	eor	w8, w24, w8
	tbz	w8, #0, LBB0_10
LBB0_4:
	mov	w24, #1
LBB0_5:
	ldr	w0, [x22]
	bl	_is_multicast_ether_addr
	ldr	x2, [x21, #8]
	ldr	x8, [x23]
	cmp	x0, #0
	ccmp	x2, x8, #0, ne
	b.ne	LBB0_7
; %bb.6:
	ldr	x8, [x21, #24]
	cbnz	x8, LBB0_14
LBB0_7:
	ldr	x0, [x20, #8]
	ldr	w1, [x21, #16]
	bl	_ieee80211_data_to_8023
	tbnz	w0, #31, LBB0_15
; %bb.8:
	ldp	x9, x8, [x20]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.9:
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_13
LBB0_10:
	ldr	w8, [x21, #32]
	cbz	w8, LBB0_14
; %bb.11:
	mov	w24, #0
	b	LBB0_5
LBB0_12:
	cbz	w24, LBB0_14
LBB0_13:
	mov	w0, #0
	b	LBB0_15
LBB0_14:
	mov	w0, #-1
LBB0_15:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_AP_VLAN,8,3     ; @NL80211_IFTYPE_AP_VLAN
	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.no_dead_strip	___ieee80211_data_to_8023
.subsections_via_symbols
