	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath5k_chan_set                 ## -- Begin function ath5k_chan_set
	.p2align	4, 0x90
_ath5k_chan_set:                        ## @ath5k_chan_set
	.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, %r14
	movq	%rdi, %rbx
	movq	_ATH5K_DEBUG_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rdi), %rax
	movl	(%rax), %ecx
	movq	8(%r14), %rax
	movl	(%rax), %r8d
	leaq	L_.str(%rip), %rdx
	callq	_ATH5K_DBG
	movl	(%r14), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	jae	LBB0_1
## %bb.2:
	cltq
	leaq	l_switch.table.ath5k_chan_set(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	8(%r14), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ath5k_reset                    ## TAILCALL
LBB0_1:
	movl	$1, %edi
	callq	_WARN_ON
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH5K_DEBUG_RESET,4,2          ## @ATH5K_DEBUG_RESET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"channel set, resetting (%u -> %u MHz)\n"

	.comm	_AR5K_BWMODE_DEFAULT,4,2        ## @AR5K_BWMODE_DEFAULT
	.comm	_AR5K_BWMODE_5MHZ,4,2           ## @AR5K_BWMODE_5MHZ
	.comm	_AR5K_BWMODE_10MHZ,4,2          ## @AR5K_BWMODE_10MHZ
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.ath5k_chan_set
l_switch.table.ath5k_chan_set:
	.quad	_AR5K_BWMODE_5MHZ
	.quad	_AR5K_BWMODE_DEFAULT
	.quad	_AR5K_BWMODE_DEFAULT
	.quad	_AR5K_BWMODE_10MHZ

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath5k_chan_set                 ; -- Begin function ath5k_chan_set
	.p2align	2
_ath5k_chan_set:                        ; @ath5k_chan_set
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ATH5K_DEBUG_RESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH5K_DEBUG_RESET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	x8, [x0, #8]
	ldr	w3, [x8]
	ldr	x8, [x20, #8]
	ldr	w4, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_ATH5K_DBG
	ldr	w8, [x20]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hs	LBB0_2
; %bb.1:
Lloh5:
	adrp	x9, l_switch.table.ath5k_chan_set@PAGE
Lloh6:
	add	x9, x9, l_switch.table.ath5k_chan_set@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w8, [x8]
	str	w8, [x19]
	ldr	x1, [x20, #8]
	mov	x0, x19
	mov	w2, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ath5k_reset
LBB0_2:
	mov	w0, #1
	bl	_WARN_ON
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH5K_DEBUG_RESET,4,2          ; @ATH5K_DEBUG_RESET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"channel set, resetting (%u -> %u MHz)\n"

	.comm	_AR5K_BWMODE_DEFAULT,4,2        ; @AR5K_BWMODE_DEFAULT
	.comm	_AR5K_BWMODE_5MHZ,4,2           ; @AR5K_BWMODE_5MHZ
	.comm	_AR5K_BWMODE_10MHZ,4,2          ; @AR5K_BWMODE_10MHZ
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.ath5k_chan_set
l_switch.table.ath5k_chan_set:
	.quad	_AR5K_BWMODE_5MHZ
	.quad	_AR5K_BWMODE_DEFAULT
	.quad	_AR5K_BWMODE_DEFAULT
	.quad	_AR5K_BWMODE_10MHZ

.subsections_via_symbols
