	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath5k_ani_set_firstep_level    ## -- Begin function ath5k_ani_set_firstep_level
	.p2align	4, 0x90
_ath5k_ani_set_firstep_level:           ## @ath5k_ani_set_firstep_level
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	testl	%esi, %esi
	js	LBB0_2
## %bb.1:
	leaq	_ath5k_ani_set_firstep_level.val(%rip), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	cmpl	%ebx, %eax
	jle	LBB0_2
## %bb.3:
	movq	_AR5K_PHY_SIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR5K_PHY_SIG_FIRSTEP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %eax
	movl	(%r15,%rax,4), %ecx
	movq	%r14, %rdi
	callq	_AR5K_REG_WRITE_BITS
	movl	%ebx, (%r14)
	movq	_ATH5K_DEBUG_ANI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ATH5K_DBG_UNLIMIT              ## TAILCALL
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ATH5K_ERR                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @ath5k_ani_set_firstep_level.val
_ath5k_ani_set_firstep_level.val:
	.long	0                               ## 0x0
	.long	4                               ## 0x4
	.long	8                               ## 0x8

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"firstep level %d out of range"

	.comm	_AR5K_PHY_SIG,4,2               ## @AR5K_PHY_SIG
	.comm	_AR5K_PHY_SIG_FIRSTEP,4,2       ## @AR5K_PHY_SIG_FIRSTEP
	.comm	_ATH5K_DEBUG_ANI,4,2            ## @ATH5K_DEBUG_ANI
L_.str.1:                               ## @.str.1
	.asciz	"new level %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath5k_ani_set_firstep_level    ; -- Begin function ath5k_ani_set_firstep_level
	.p2align	2
_ath5k_ani_set_firstep_level:           ; @ath5k_ani_set_firstep_level
	.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
	mov	x20, x0
	tbnz	w1, #31, LBB0_3
; %bb.1:
Lloh0:
	adrp	x21, _ath5k_ani_set_firstep_level.val@PAGE
Lloh1:
	add	x21, x21, _ath5k_ani_set_firstep_level.val@PAGEOFF
	mov	x0, x21
	bl	_ARRAY_SIZE
	cmp	w0, w19
	b.le	LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _AR5K_PHY_SIG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AR5K_PHY_SIG@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _AR5K_PHY_SIG_FIRSTEP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AR5K_PHY_SIG_FIRSTEP@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	ldr	w3, [x21, w19, uxtw #2]
	mov	x0, x20
	bl	_AR5K_REG_WRITE_BITS
	str	w19, [x20]
Lloh8:
	adrp	x8, _ATH5K_DEBUG_ANI@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ATH5K_DEBUG_ANI@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x3, x19
	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
	b	_ATH5K_DBG_UNLIMIT
LBB0_3:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	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
	b	_ATH5K_ERR
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @ath5k_ani_set_firstep_level.val
_ath5k_ani_set_firstep_level.val:
	.long	0                               ; 0x0
	.long	4                               ; 0x4
	.long	8                               ; 0x8

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"firstep level %d out of range"

	.comm	_AR5K_PHY_SIG,4,2               ; @AR5K_PHY_SIG
	.comm	_AR5K_PHY_SIG_FIRSTEP,4,2       ; @AR5K_PHY_SIG_FIRSTEP
	.comm	_ATH5K_DEBUG_ANI,4,2            ; @ATH5K_DEBUG_ANI
l_.str.1:                               ; @.str.1
	.asciz	"new level %d"

.subsections_via_symbols
