	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reg_process_ht_flags_channel
_reg_process_ht_flags_channel:          ## @reg_process_ht_flags_channel
	.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
	movq	%rsi, %r14
	movq	(%rdi), %rax
	movq	(%rsi), %rcx
	movq	(%rax,%rcx,8), %rbx
	movq	%rsi, %rdi
	callq	_is_ht40_allowed
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movl	(%rbx), %r9d
	testq	%r9, %r9
	je	LBB0_2
## %bb.3:
	movq	8(%rbx), %r8
	movl	8(%r14), %r15d
	leal	-20(%r15), %r11d
	addl	$20, %r15d
	cmpl	$1, %r9d
	jne	LBB0_6
## %bb.4:
	xorl	%ecx, %ecx
	xorl	%edi, %edi
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_5:
	movq	_IEEE80211_CHAN_NO_HT40@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%r14)
	jmp	LBB0_16
LBB0_2:
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	jmp	LBB0_10
LBB0_6:
	movl	%r9d, %r10d
	andl	$-2, %r10d
	leaq	16(%r8), %rsi
	xorl	%ecx, %ecx
	xorl	%edi, %edi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-16(%rsi), %rdx
	movl	-8(%rsi), %eax
	cmpl	%r11d, %eax
	cmoveq	%rdx, %rdi
	cmpl	%r15d, %eax
	cmoveq	%rdx, %rbx
	movl	8(%rsi), %eax
	cmpl	%r11d, %eax
	cmoveq	%rsi, %rdi
	cmpl	%r15d, %eax
	cmoveq	%rsi, %rbx
	addq	$2, %rcx
	addq	$32, %rsi
	cmpq	%rcx, %r10
	jne	LBB0_7
LBB0_8:
	testb	$1, %r9b
	je	LBB0_10
## %bb.9:
	shlq	$4, %rcx
	leaq	(%r8,%rcx), %rax
	movl	8(%r8,%rcx), %ecx
	cmpl	%r11d, %ecx
	cmoveq	%rax, %rdi
	cmpl	%r15d, %ecx
	cmoveq	%rax, %rbx
LBB0_10:
	callq	_is_ht40_allowed
	movq	_IEEE80211_CHAN_NO_HT40MINUS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	notl	%ecx
	andl	%ecx, 12(%r14)
	jmp	LBB0_13
LBB0_11:
	orl	%ecx, 12(%r14)
LBB0_13:
	movq	%rbx, %rdi
	callq	_is_ht40_allowed
	movq	_IEEE80211_CHAN_NO_HT40PLUS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:
	notl	%ecx
	andl	%ecx, 12(%r14)
	jmp	LBB0_16
LBB0_14:
	orl	%ecx, 12(%r14)
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_CHAN_NO_HT40,4,2     ## @IEEE80211_CHAN_NO_HT40
	.comm	_IEEE80211_CHAN_NO_HT40MINUS,4,2 ## @IEEE80211_CHAN_NO_HT40MINUS
	.comm	_IEEE80211_CHAN_NO_HT40PLUS,4,2 ## @IEEE80211_CHAN_NO_HT40PLUS
	.no_dead_strip	_reg_process_ht_flags_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reg_process_ht_flags_channel
_reg_process_ht_flags_channel:          ; @reg_process_ht_flags_channel
	.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	x19, x1
	ldr	x8, [x0]
	ldr	x9, [x1]
	ldr	x21, [x8, x9, lsl #3]
	mov	x0, x1
	bl	_is_ht40_allowed
	cbz	w0, LBB0_4
; %bb.1:
	ldr	w8, [x21]
	cbz	w8, LBB0_5
; %bb.2:
	mov	x0, #0
	mov	x20, #0
	ldr	x9, [x21, #8]
	ldr	w11, [x19, #8]
	sub	w10, w11, #20
	add	w11, w11, #20
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x9, #8]
	cmp	w12, w10
	csel	x0, x9, x0, eq
	cmp	w12, w11
	csel	x20, x9, x20, eq
	add	x9, x9, #16
	subs	x8, x8, #1
	b.ne	LBB0_3
	b	LBB0_6
LBB0_4:
Lloh0:
	adrp	x8, _IEEE80211_CHAN_NO_HT40@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_CHAN_NO_HT40@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	b	LBB0_11
LBB0_5:
	mov	x20, #0
	mov	x0, #0
LBB0_6:
	bl	_is_ht40_allowed
Lloh3:
	adrp	x8, _IEEE80211_CHAN_NO_HT40MINUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_CHAN_NO_HT40MINUS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cbz	w0, LBB0_8
; %bb.7:
	ldr	w9, [x19, #12]
	bic	w8, w9, w8
	b	LBB0_9
LBB0_8:
	ldr	w9, [x19, #12]
	orr	w8, w9, w8
LBB0_9:
	str	w8, [x19, #12]
	mov	x0, x20
	bl	_is_ht40_allowed
Lloh6:
	adrp	x8, _IEEE80211_CHAN_NO_HT40PLUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE80211_CHAN_NO_HT40PLUS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cbz	w0, LBB0_11
; %bb.10:
	ldr	w9, [x19, #12]
	bic	w8, w9, w8
	b	LBB0_12
LBB0_11:
	ldr	w9, [x19, #12]
	orr	w8, w9, w8
LBB0_12:
	str	w8, [x19, #12]
	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	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_CHAN_NO_HT40,4,2     ; @IEEE80211_CHAN_NO_HT40
	.comm	_IEEE80211_CHAN_NO_HT40MINUS,4,2 ; @IEEE80211_CHAN_NO_HT40MINUS
	.comm	_IEEE80211_CHAN_NO_HT40PLUS,4,2 ; @IEEE80211_CHAN_NO_HT40PLUS
	.no_dead_strip	_reg_process_ht_flags_channel
.subsections_via_symbols
