	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function libipw_get_hdrlen
_libipw_get_hdrlen:                     ## @libipw_get_hdrlen
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	_LIBIPW_3ADDR_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	callq	_WLAN_FC_GET_STYPE
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_WLAN_FC_GET_TYPE
	cmpl	$131, %eax
	je	LBB0_6
## %bb.1:
	cmpl	$130, %eax
	jne	LBB0_10
## %bb.2:
	movq	_IEEE80211_FCTL_FROMDS@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_5
## %bb.3:
	movq	_IEEE80211_FCTL_TODS@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_LIBIPW_4ADDR_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_5:
	movq	_IEEE80211_STYPE_QOS_DATA@GOTPCREL(%rip), %rax
	leal	2(%r15), %ecx
	testl	%r14d, (%rax)
	cmovel	%r15d, %ecx
	movl	%ecx, %r15d
	jmp	LBB0_10
LBB0_6:
	movl	%ebx, %edi
	callq	_WLAN_FC_GET_STYPE
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_8
## %bb.7:
	movq	_LIBIPW_1ADDR_LEN@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_LIBIPW_2ADDR_LEN@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LIBIPW_3ADDR_LEN,4,2           ## @LIBIPW_3ADDR_LEN
	.comm	_IEEE80211_FCTL_FROMDS,4,2      ## @IEEE80211_FCTL_FROMDS
	.comm	_IEEE80211_FCTL_TODS,4,2        ## @IEEE80211_FCTL_TODS
	.comm	_LIBIPW_4ADDR_LEN,4,2           ## @LIBIPW_4ADDR_LEN
	.comm	_IEEE80211_STYPE_QOS_DATA,4,2   ## @IEEE80211_STYPE_QOS_DATA
	.comm	_LIBIPW_1ADDR_LEN,4,2           ## @LIBIPW_1ADDR_LEN
	.comm	_LIBIPW_2ADDR_LEN,4,2           ## @LIBIPW_2ADDR_LEN
	.no_dead_strip	_libipw_get_hdrlen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function libipw_get_hdrlen
_libipw_get_hdrlen:                     ; @libipw_get_hdrlen
	.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	x20, x0
Lloh0:
	adrp	x8, _LIBIPW_3ADDR_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LIBIPW_3ADDR_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	bl	_WLAN_FC_GET_STYPE
	mov	x21, x0
	mov	x0, x20
	bl	_WLAN_FC_GET_TYPE
	cmp	w0, #131
	b.eq	LBB0_5
; %bb.1:
	cmp	w0, #130
	b.ne	LBB0_9
; %bb.2:
Lloh3:
	adrp	x8, _IEEE80211_FCTL_FROMDS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_FCTL_FROMDS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _IEEE80211_FCTL_TODS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE80211_FCTL_TODS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _LIBIPW_4ADDR_LEN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _LIBIPW_4ADDR_LEN@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w8, w20
	csel	w19, w19, w9, eq
LBB0_4:
Lloh12:
	adrp	x8, _IEEE80211_STYPE_QOS_DATA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IEEE80211_STYPE_QOS_DATA@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	add	w9, w19, #2
	tst	w8, w21
	csel	w19, w19, w9, eq
	b	LBB0_9
LBB0_5:
	mov	x0, x20
	bl	_WLAN_FC_GET_STYPE
	and	w8, w0, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_7
; %bb.6:
Lloh15:
	adrp	x8, _LIBIPW_1ADDR_LEN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LIBIPW_1ADDR_LEN@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh17:
	adrp	x8, _LIBIPW_2ADDR_LEN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LIBIPW_2ADDR_LEN@GOTPAGEOFF]
LBB0_8:
	ldr	w19, [x8]
LBB0_9:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_LIBIPW_3ADDR_LEN,4,2           ; @LIBIPW_3ADDR_LEN
	.comm	_IEEE80211_FCTL_FROMDS,4,2      ; @IEEE80211_FCTL_FROMDS
	.comm	_IEEE80211_FCTL_TODS,4,2        ; @IEEE80211_FCTL_TODS
	.comm	_LIBIPW_4ADDR_LEN,4,2           ; @LIBIPW_4ADDR_LEN
	.comm	_IEEE80211_STYPE_QOS_DATA,4,2   ; @IEEE80211_STYPE_QOS_DATA
	.comm	_LIBIPW_1ADDR_LEN,4,2           ; @LIBIPW_1ADDR_LEN
	.comm	_LIBIPW_2ADDR_LEN,4,2           ; @LIBIPW_2ADDR_LEN
	.no_dead_strip	_libipw_get_hdrlen
.subsections_via_symbols
