	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_ie_build_ht_oper     ## -- Begin function ieee80211_ie_build_ht_oper
	.p2align	4, 0x90
_ieee80211_ie_build_ht_oper:            ## @ieee80211_ie_build_ht_oper
	.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
	movl	%ecx, %r15d
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_WLAN_EID_HT_OPERATION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdi)
	movl	$20, 4(%rdi)
	movq	8(%rdx), %rax
	movl	(%rax), %edi
	callq	_ieee80211_frequency_to_channel
	movl	%eax, 24(%rbx)
	movl	(%r12), %eax
	movl	%eax, %ecx
	andl	$-4, %ecx
	cmpl	$128, %ecx
	jne	LBB0_1
## %bb.2:
	movl	16(%r12), %ecx
	movq	8(%r12), %rdx
	cmpl	(%rdx), %ecx
	jle	LBB0_3
## %bb.4:
	movq	_IEEE80211_HT_PARAM_CHA_SEC_ABOVE@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_1:
	movq	_IEEE80211_HT_PARAM_CHA_SEC_NONE@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_3:
	movq	_IEEE80211_HT_PARAM_CHA_SEC_BELOW@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rbx)
	movq	_IEEE80211_HT_CAP_SUP_WIDTH_20_40@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%r14)
	je	LBB0_9
## %bb.6:
	movq	_NL80211_CHAN_WIDTH_20_NOHT@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	je	LBB0_9
## %bb.7:
	movq	_NL80211_CHAN_WIDTH_20@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	je	LBB0_9
## %bb.8:
	movq	_IEEE80211_HT_PARAM_CHAN_WIDTH_ANY@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 20(%rbx)
LBB0_9:
	movl	%r15d, %edi
	callq	_cpu_to_le16
	movl	%eax, 16(%rbx)
	movl	$0, 8(%rbx)
	leaq	12(%rbx), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	addq	$4, %r14
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$10, %edx
	callq	_memcpy
	addq	$88, %rbx
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_EID_HT_OPERATION,4,2      ## @WLAN_EID_HT_OPERATION
	.comm	_IEEE80211_HT_PARAM_CHA_SEC_ABOVE,4,2 ## @IEEE80211_HT_PARAM_CHA_SEC_ABOVE
	.comm	_IEEE80211_HT_PARAM_CHA_SEC_BELOW,4,2 ## @IEEE80211_HT_PARAM_CHA_SEC_BELOW
	.comm	_IEEE80211_HT_PARAM_CHA_SEC_NONE,4,2 ## @IEEE80211_HT_PARAM_CHA_SEC_NONE
	.comm	_IEEE80211_HT_CAP_SUP_WIDTH_20_40,4,2 ## @IEEE80211_HT_CAP_SUP_WIDTH_20_40
	.comm	_NL80211_CHAN_WIDTH_20_NOHT,4,2 ## @NL80211_CHAN_WIDTH_20_NOHT
	.comm	_NL80211_CHAN_WIDTH_20,4,2      ## @NL80211_CHAN_WIDTH_20
	.comm	_IEEE80211_HT_PARAM_CHAN_WIDTH_ANY,4,2 ## @IEEE80211_HT_PARAM_CHAN_WIDTH_ANY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_ie_build_ht_oper     ; -- Begin function ieee80211_ie_build_ht_oper
	.p2align	2
_ieee80211_ie_build_ht_oper:            ; @ieee80211_ie_build_ht_oper
	.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, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _WLAN_EID_HT_OPERATION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WLAN_EID_HT_OPERATION@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, #20
	stp	w8, w9, [x0]
	ldr	x8, [x2, #8]
	ldr	w0, [x8]
	bl	_ieee80211_frequency_to_channel
	str	w0, [x19, #24]
	ldr	w8, [x22]
	and	w9, w8, #0xfffffffc
	cmp	w9, #128
	b.ne	LBB0_2
; %bb.1:
	ldr	w9, [x22, #16]
	ldr	x10, [x22, #8]
	ldr	w10, [x10]
Lloh3:
	adrp	x11, _IEEE80211_HT_PARAM_CHA_SEC_BELOW@GOTPAGE
Lloh4:
	ldr	x11, [x11, _IEEE80211_HT_PARAM_CHA_SEC_BELOW@GOTPAGEOFF]
Lloh5:
	adrp	x12, _IEEE80211_HT_PARAM_CHA_SEC_ABOVE@GOTPAGE
Lloh6:
	ldr	x12, [x12, _IEEE80211_HT_PARAM_CHA_SEC_ABOVE@GOTPAGEOFF]
	cmp	w9, w10
	csel	x9, x12, x11, gt
	b	LBB0_3
LBB0_2:
Lloh7:
	adrp	x9, _IEEE80211_HT_PARAM_CHA_SEC_NONE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _IEEE80211_HT_PARAM_CHA_SEC_NONE@GOTPAGEOFF]
LBB0_3:
	ldr	w9, [x9]
	str	w9, [x19, #20]
	ldr	w10, [x20]
Lloh9:
	adrp	x11, _IEEE80211_HT_CAP_SUP_WIDTH_20_40@GOTPAGE
Lloh10:
	ldr	x11, [x11, _IEEE80211_HT_CAP_SUP_WIDTH_20_40@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_6
; %bb.4:
Lloh12:
	adrp	x10, _NL80211_CHAN_WIDTH_20_NOHT@GOTPAGE
Lloh13:
	ldr	x10, [x10, _NL80211_CHAN_WIDTH_20_NOHT@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
Lloh15:
	adrp	x11, _NL80211_CHAN_WIDTH_20@GOTPAGE
Lloh16:
	ldr	x11, [x11, _NL80211_CHAN_WIDTH_20@GOTPAGEOFF]
Lloh17:
	ldr	w11, [x11]
	cmp	w8, w10
	ccmp	w8, w11, #4, ne
	b.eq	LBB0_6
; %bb.5:
Lloh18:
	adrp	x8, _IEEE80211_HT_PARAM_CHAN_WIDTH_ANY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IEEE80211_HT_PARAM_CHAN_WIDTH_ANY@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	orr	w8, w9, w8
	str	w8, [x19, #20]
LBB0_6:
	mov	x0, x21
	bl	_cpu_to_le16
	str	w0, [x19, #16]
	str	wzr, [x19, #8]
	add	x21, x19, #12
	mov	x0, x21
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	add	x1, x20, #4
	mov	x0, x21
	mov	w2, #10
	bl	_memcpy
	add	x0, x19, #88
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_EID_HT_OPERATION,4,2      ; @WLAN_EID_HT_OPERATION
	.comm	_IEEE80211_HT_PARAM_CHA_SEC_ABOVE,4,2 ; @IEEE80211_HT_PARAM_CHA_SEC_ABOVE
	.comm	_IEEE80211_HT_PARAM_CHA_SEC_BELOW,4,2 ; @IEEE80211_HT_PARAM_CHA_SEC_BELOW
	.comm	_IEEE80211_HT_PARAM_CHA_SEC_NONE,4,2 ; @IEEE80211_HT_PARAM_CHA_SEC_NONE
	.comm	_IEEE80211_HT_CAP_SUP_WIDTH_20_40,4,2 ; @IEEE80211_HT_CAP_SUP_WIDTH_20_40
	.comm	_NL80211_CHAN_WIDTH_20_NOHT,4,2 ; @NL80211_CHAN_WIDTH_20_NOHT
	.comm	_NL80211_CHAN_WIDTH_20,4,2      ; @NL80211_CHAN_WIDTH_20
	.comm	_IEEE80211_HT_PARAM_CHAN_WIDTH_ANY,4,2 ; @IEEE80211_HT_PARAM_CHAN_WIDTH_ANY
.subsections_via_symbols
