	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_add_channel_ht40     ## -- Begin function ieee80211_add_channel_ht40
	.p2align	4, 0x90
_ieee80211_add_channel_ht40:            ## @ieee80211_add_channel_ht40
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r15
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	movl	%ecx, %edi
	movl	%r9d, %esi
	callq	_ieee80211_ieee2mhz
	movq	%rax, %rbx
	movq	_IEEE80211_CHAN_HT20@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	(%r15), %esi
	movq	%r13, %rdi
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	callq	_findchannel
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r12
	movl	(%r15), %esi
	addq	$20, %rbx
	movq	%r13, %rdi
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	callq	_findchannel
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %rbx
	movq	_IEEE80211_CHAN_HT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r14d
	movl	(%r12), %r8d
	movl	4(%r12), %ecx
	movq	_IEEE80211_CHAN_HT40U@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%r14d, %eax
	movl	%eax, (%rsp)
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%r15, %rdx
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %r9d
	callq	_addchan
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movl	(%rbx), %r8d
	movl	4(%rbx), %ecx
	movq	_IEEE80211_CHAN_HT40D@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	%r14d, (%rsp)
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%r15, %rdx
	movl	%r12d, %r9d
	callq	_addchan
	jmp	LBB0_7
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_ENOENT@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_CHAN_HT20,4,2        ## @IEEE80211_CHAN_HT20
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_IEEE80211_CHAN_HT,4,2          ## @IEEE80211_CHAN_HT
	.comm	_IEEE80211_CHAN_HT40U,4,2       ## @IEEE80211_CHAN_HT40U
	.comm	_IEEE80211_CHAN_HT40D,4,2       ## @IEEE80211_CHAN_HT40D
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_add_channel_ht40     ; -- Begin function ieee80211_add_channel_ht40
	.p2align	2
_ieee80211_add_channel_ht40:            ; @ieee80211_add_channel_ht40
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x5
	mov	x19, x4
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	x0, x3
	mov	x1, x5
	bl	_ieee80211_ieee2mhz
	mov	x23, x0
Lloh0:
	adrp	x8, _IEEE80211_CHAN_HT20@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_CHAN_HT20@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w24, w8, w24
	ldr	w1, [x20]
	mov	x0, x22
	mov	x2, x23
	mov	x3, x24
	bl	_findchannel
	cbz	x0, LBB0_4
; %bb.1:
	mov	x25, x0
	ldr	w1, [x20]
	add	x2, x23, #20
	mov	x0, x22
	mov	x3, x24
	bl	_findchannel
	cbz	x0, LBB0_5
; %bb.2:
	mov	x23, x0
Lloh3:
	adrp	x8, _IEEE80211_CHAN_HT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_CHAN_HT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	bic	w24, w24, w8
	ldp	w4, w3, [x25]
Lloh6:
	adrp	x8, _IEEE80211_CHAN_HT40U@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE80211_CHAN_HT40U@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w6, w8, w24
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x5, x19
	bl	_addchan
	cbnz	w0, LBB0_7
; %bb.3:
	ldp	w4, w3, [x23]
Lloh9:
	adrp	x8, _IEEE80211_CHAN_HT40D@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IEEE80211_CHAN_HT40D@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w6, w8, w24
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x5, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_addchan
LBB0_4:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh14:
	adrp	x8, _ENOENT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_CHAN_HT20,4,2        ; @IEEE80211_CHAN_HT20
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_IEEE80211_CHAN_HT,4,2          ; @IEEE80211_CHAN_HT
	.comm	_IEEE80211_CHAN_HT40U,4,2       ; @IEEE80211_CHAN_HT40U
	.comm	_IEEE80211_CHAN_HT40D,4,2       ; @IEEE80211_CHAN_HT40D
.subsections_via_symbols
