	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_ht_adjust_channel    ## -- Begin function ieee80211_ht_adjust_channel
	.p2align	4, 0x90
_ieee80211_ht_adjust_channel:           ## @ieee80211_ht_adjust_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_IEEE80211_FHT_HT@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_7
## %bb.1:
	movq	_IEEE80211_FHT_USEHT40@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_6
## %bb.2:
	movq	%rbx, %rdi
	callq	_IEEE80211_IS_CHAN_HT40
	testl	%eax, %eax
	jne	LBB0_10
## %bb.3:
	movq	_IEEE80211_CHAN_HT40U@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_findhtchan
	testq	%rax, %rax
	jne	LBB0_9
## %bb.4:
	movq	_IEEE80211_CHAN_HT40D@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_findhtchan
	testq	%rax, %rax
	jne	LBB0_9
	jmp	LBB0_5
LBB0_7:
	movq	%rbx, %rdi
	callq	_IEEE80211_IS_CHAN_HT
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movl	4(%rbx), %esi
	movq	_IEEE80211_CHAN_HT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_ieee80211_find_channel
	jmp	LBB0_9
LBB0_6:
	movq	%rbx, %rdi
	callq	_IEEE80211_IS_CHAN_HT20
	testl	%eax, %eax
	jne	LBB0_10
LBB0_5:
	movq	_IEEE80211_CHAN_HT20@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_findhtchan
LBB0_9:
	testq	%rax, %rax
	cmovneq	%rax, %rbx
LBB0_10:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_FHT_HT,4,2           ## @IEEE80211_FHT_HT
	.comm	_IEEE80211_FHT_USEHT40,4,2      ## @IEEE80211_FHT_USEHT40
	.comm	_IEEE80211_CHAN_HT40U,4,2       ## @IEEE80211_CHAN_HT40U
	.comm	_IEEE80211_CHAN_HT40D,4,2       ## @IEEE80211_CHAN_HT40D
	.comm	_IEEE80211_CHAN_HT20,4,2        ## @IEEE80211_CHAN_HT20
	.comm	_IEEE80211_CHAN_HT,4,2          ## @IEEE80211_CHAN_HT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_ht_adjust_channel    ; -- Begin function ieee80211_ht_adjust_channel
	.p2align	2
_ieee80211_ht_adjust_channel:           ; @ieee80211_ht_adjust_channel
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _IEEE80211_FHT_HT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_FHT_HT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _IEEE80211_FHT_USEHT40@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_FHT_USEHT40@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x0, x19
	tst	w8, w2
	b.eq	LBB0_7
; %bb.2:
	bl	_IEEE80211_IS_CHAN_HT40
	cbnz	w0, LBB0_10
; %bb.3:
Lloh6:
	adrp	x8, _IEEE80211_CHAN_HT40U@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE80211_CHAN_HT40U@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_findhtchan
	cbnz	x0, LBB0_9
; %bb.4:
Lloh9:
	adrp	x8, _IEEE80211_CHAN_HT40D@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IEEE80211_CHAN_HT40D@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_findhtchan
	cbnz	x0, LBB0_9
	b	LBB0_8
LBB0_5:
	mov	x0, x19
	bl	_IEEE80211_IS_CHAN_HT
	cbz	x0, LBB0_10
; %bb.6:
	ldp	w8, w1, [x19]
Lloh12:
	adrp	x9, _IEEE80211_CHAN_HT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IEEE80211_CHAN_HT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	bic	w2, w8, w9
	mov	x0, x20
	bl	_ieee80211_find_channel
	b	LBB0_9
LBB0_7:
	bl	_IEEE80211_IS_CHAN_HT20
	cbnz	w0, LBB0_10
LBB0_8:
Lloh15:
	adrp	x8, _IEEE80211_CHAN_HT20@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IEEE80211_CHAN_HT20@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_findhtchan
LBB0_9:
	cmp	x0, #0
	csel	x19, x19, x0, eq
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_FHT_HT,4,2           ; @IEEE80211_FHT_HT
	.comm	_IEEE80211_FHT_USEHT40,4,2      ; @IEEE80211_FHT_USEHT40
	.comm	_IEEE80211_CHAN_HT40U,4,2       ; @IEEE80211_CHAN_HT40U
	.comm	_IEEE80211_CHAN_HT40D,4,2       ; @IEEE80211_CHAN_HT40D
	.comm	_IEEE80211_CHAN_HT20,4,2        ; @IEEE80211_CHAN_HT20
	.comm	_IEEE80211_CHAN_HT,4,2          ; @IEEE80211_CHAN_HT
.subsections_via_symbols
