	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_add_erp
_ieee80211_add_erp:                     ## @ieee80211_add_erp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdi, %rax
	movq	_IEEE80211_ELEMID_ERP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rdi)
	movl	$1, 4(%rdi)
	xorl	%edi, %edi
	cmpq	$0, (%rsi)
	je	LBB0_2
## %bb.1:
	movq	_IEEE80211_ERP_NON_ERP_PRESENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
LBB0_2:
	movl	8(%rsi), %ecx
	movq	_IEEE80211_F_USEPROT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%ecx, %edx
	je	LBB0_4
## %bb.3:
	movq	_IEEE80211_ERP_USE_PROTECTION@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_4:
	orl	%edi, %edx
	movq	_IEEE80211_F_USEBARKER@GOTPCREL(%rip), %rsi
	andl	(%rsi), %ecx
	je	LBB0_6
## %bb.5:
	movq	_IEEE80211_ERP_LONG_PREAMBLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_6:
	orl	%ecx, %edx
	movl	%edx, 8(%rax)
	addq	$12, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_ELEMID_ERP,4,2       ## @IEEE80211_ELEMID_ERP
	.comm	_IEEE80211_ERP_NON_ERP_PRESENT,4,2 ## @IEEE80211_ERP_NON_ERP_PRESENT
	.comm	_IEEE80211_F_USEPROT,4,2        ## @IEEE80211_F_USEPROT
	.comm	_IEEE80211_ERP_USE_PROTECTION,4,2 ## @IEEE80211_ERP_USE_PROTECTION
	.comm	_IEEE80211_F_USEBARKER,4,2      ## @IEEE80211_F_USEBARKER
	.comm	_IEEE80211_ERP_LONG_PREAMBLE,4,2 ## @IEEE80211_ERP_LONG_PREAMBLE
	.no_dead_strip	_ieee80211_add_erp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_add_erp
_ieee80211_add_erp:                     ; @ieee80211_add_erp
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _IEEE80211_ELEMID_ERP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_ELEMID_ERP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, #1
	stp	w8, w9, [x0]
	ldr	x8, [x1]
Lloh3:
	adrp	x9, _IEEE80211_ERP_NON_ERP_PRESENT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_ERP_NON_ERP_PRESENT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w8, wzr, w9, eq
	ldr	w9, [x1, #8]
Lloh6:
	adrp	x10, _IEEE80211_F_USEPROT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IEEE80211_F_USEPROT@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _IEEE80211_ERP_USE_PROTECTION@GOTPAGE
Lloh10:
	ldr	x11, [x11, _IEEE80211_ERP_USE_PROTECTION@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w10, wzr, w11, eq
	orr	w8, w10, w8
Lloh12:
	adrp	x10, _IEEE80211_F_USEBARKER@GOTPAGE
Lloh13:
	ldr	x10, [x10, _IEEE80211_F_USEBARKER@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
Lloh15:
	adrp	x11, _IEEE80211_ERP_LONG_PREAMBLE@GOTPAGE
Lloh16:
	ldr	x11, [x11, _IEEE80211_ERP_LONG_PREAMBLE@GOTPAGEOFF]
Lloh17:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w9, wzr, w11, eq
	orr	w9, w8, w9
	add	x8, x0, #12
	str	w9, [x0, #8]
	mov	x0, x8
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_ELEMID_ERP,4,2       ; @IEEE80211_ELEMID_ERP
	.comm	_IEEE80211_ERP_NON_ERP_PRESENT,4,2 ; @IEEE80211_ERP_NON_ERP_PRESENT
	.comm	_IEEE80211_F_USEPROT,4,2        ; @IEEE80211_F_USEPROT
	.comm	_IEEE80211_ERP_USE_PROTECTION,4,2 ; @IEEE80211_ERP_USE_PROTECTION
	.comm	_IEEE80211_F_USEBARKER,4,2      ; @IEEE80211_F_USEBARKER
	.comm	_IEEE80211_ERP_LONG_PREAMBLE,4,2 ; @IEEE80211_ERP_LONG_PREAMBLE
	.no_dead_strip	_ieee80211_add_erp
.subsections_via_symbols
