	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_cmn_update_ichannel
_ath9k_cmn_update_ichannel:             ## @ath9k_cmn_update_ichannel
	.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	%rdi, %r14
	movq	8(%rsi), %rcx
	movl	8(%rcx), %eax
	movl	%eax, 16(%rdi)
	movq	%rcx, 8(%rdi)
	movq	(%rcx), %rcx
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rdx
	xorl	%ebx, %ebx
	cmpq	(%rdx), %rcx
	jne	LBB0_2
## %bb.1:
	movq	_CHANNEL_5GHZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_2:
	movl	(%rsi), %ecx
	addl	$-128, %ecx
	cmpl	$4, %ecx
	ja	LBB0_11
## %bb.3:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_4:
	movq	_CHANNEL_QUARTER@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	jmp	LBB0_12
LBB0_5:
	movq	_CHANNEL_HALF@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	jmp	LBB0_12
LBB0_11:
	movl	$1, %edi
	callq	_WARN_ON
	jmp	LBB0_12
LBB0_7:
	cmpl	%eax, 16(%rsi)
	jle	LBB0_10
## %bb.8:
	movq	_CHANNEL_HT40PLUS@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movq	_CHANNEL_HT@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	jmp	LBB0_12
LBB0_10:
	movq	_CHANNEL_HT40MINUS@GOTPCREL(%rip), %rax
LBB0_9:
	movq	_CHANNEL_HT@GOTPCREL(%rip), %rcx
	orl	(%rax), %ebx
	orl	(%rcx), %ebx
LBB0_12:
	movl	%ebx, (%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_7
	.long	L0_0_set_12
	.long	L0_0_set_6
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.comm	_CHANNEL_5GHZ,4,2               ## @CHANNEL_5GHZ
	.comm	_CHANNEL_QUARTER,4,2            ## @CHANNEL_QUARTER
	.comm	_CHANNEL_HALF,4,2               ## @CHANNEL_HALF
	.comm	_CHANNEL_HT,4,2                 ## @CHANNEL_HT
	.comm	_CHANNEL_HT40PLUS,4,2           ## @CHANNEL_HT40PLUS
	.comm	_CHANNEL_HT40MINUS,4,2          ## @CHANNEL_HT40MINUS
	.no_dead_strip	_ath9k_cmn_update_ichannel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_cmn_update_ichannel
_ath9k_cmn_update_ichannel:             ; @ath9k_cmn_update_ichannel
	.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, x0
	ldr	x9, [x1, #8]
	ldr	w8, [x9, #8]
	str	w8, [x0, #16]
	str	x9, [x0, #8]
	ldr	x9, [x9]
Lloh0:
	adrp	x10, _NL80211_BAND_5GHZ@GOTPAGE
Lloh1:
	ldr	x10, [x10, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
Lloh3:
	adrp	x11, _CHANNEL_5GHZ@GOTPAGE
Lloh4:
	ldr	x11, [x11, _CHANNEL_5GHZ@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	cmp	x9, x10
	csel	w20, w11, wzr, eq
	ldr	w9, [x1]
	sub	w9, w9, #128
	cmp	w9, #4
	b.hi	LBB0_4
; %bb.1:
Lloh6:
	adrp	x10, lJTI0_0@PAGE
Lloh7:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
Lloh8:
	adrp	x8, _CHANNEL_QUARTER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CHANNEL_QUARTER@GOTPAGEOFF]
	b	LBB0_8
LBB0_3:
Lloh10:
	adrp	x8, _CHANNEL_HALF@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CHANNEL_HALF@GOTPAGEOFF]
	b	LBB0_8
LBB0_4:
	mov	w0, #1
	bl	_WARN_ON
	b	LBB0_11
LBB0_5:
	ldr	w9, [x1, #16]
	cmp	w9, w8
	b.le	LBB0_9
; %bb.6:
Lloh12:
	adrp	x8, _CHANNEL_HT40PLUS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CHANNEL_HT40PLUS@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
Lloh14:
	adrp	x8, _CHANNEL_HT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CHANNEL_HT@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	orr	w20, w8, w20
	b	LBB0_11
LBB0_9:
Lloh16:
	adrp	x8, _CHANNEL_HT40MINUS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CHANNEL_HT40MINUS@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _CHANNEL_HT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _CHANNEL_HT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w8, w20
	orr	w20, w8, w9
LBB0_11:
	str	w20, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
                                        ; -- End function
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.comm	_CHANNEL_5GHZ,4,2               ; @CHANNEL_5GHZ
	.comm	_CHANNEL_QUARTER,4,2            ; @CHANNEL_QUARTER
	.comm	_CHANNEL_HALF,4,2               ; @CHANNEL_HALF
	.comm	_CHANNEL_HT,4,2                 ; @CHANNEL_HT
	.comm	_CHANNEL_HT40PLUS,4,2           ; @CHANNEL_HT40PLUS
	.comm	_CHANNEL_HT40MINUS,4,2          ; @CHANNEL_HT40MINUS
	.no_dead_strip	_ath9k_cmn_update_ichannel
.subsections_via_symbols
