	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath5k_ani_set_noise_immunity_level ## -- Begin function ath5k_ani_set_noise_immunity_level
	.p2align	4, 0x90
_ath5k_ani_set_noise_immunity_level:    ## @ath5k_ani_set_noise_immunity_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -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_noise_immunity_level.sz(%rip), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	cmpl	%ebx, %eax
	jle	LBB0_2
## %bb.3:
	movq	_AR5K_PHY_DESIRED_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR5K_PHY_DESIRED_SIZE_TOT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %r12d
	movl	(%r15,%r12,4), %ecx
	movq	%r14, %rdi
	callq	_AR5K_REG_WRITE_BITS
	movq	_AR5K_PHY_AGCCOARSE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_AR5K_PHY_AGCCOARSE_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	_ath5k_ani_set_noise_immunity_level.lo(%rip), %rax
	movl	(%rax,%r12,4), %ecx
	movq	%r14, %rdi
	callq	_AR5K_REG_WRITE_BITS
	movl	(%r15), %esi
	movq	_AR5K_PHY_AGCCOARSE_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	_ath5k_ani_set_noise_immunity_level.hi(%rip), %rax
	movl	(%rax,%r12,4), %ecx
	movq	%r14, %rdi
	callq	_AR5K_REG_WRITE_BITS
	movq	_AR5K_PHY_SIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR5K_PHY_SIG_FIRPWR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	_ath5k_ani_set_noise_immunity_level.fr(%rip), %rax
	movl	(%rax,%r12,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
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ATH5K_DBG_UNLIMIT              ## TAILCALL
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ATH5K_ERR                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @ath5k_ani_set_noise_immunity_level.lo
_ath5k_ani_set_noise_immunity_level.lo:
	.long	4294967232                      ## 0xffffffc0
	.long	4294967226                      ## 0xffffffba

	.p2align	2                               ## @ath5k_ani_set_noise_immunity_level.hi
_ath5k_ani_set_noise_immunity_level.hi:
	.long	4294967282                      ## 0xfffffff2
	.long	4294967284                      ## 0xfffffff4

	.p2align	2                               ## @ath5k_ani_set_noise_immunity_level.sz
_ath5k_ani_set_noise_immunity_level.sz:
	.long	4294967241                      ## 0xffffffc9
	.long	4294967234                      ## 0xffffffc2

	.p2align	2                               ## @ath5k_ani_set_noise_immunity_level.fr
_ath5k_ani_set_noise_immunity_level.fr:
	.long	4294967218                      ## 0xffffffb2
	.long	4294967216                      ## 0xffffffb0

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

	.comm	_AR5K_PHY_DESIRED_SIZE,4,2      ## @AR5K_PHY_DESIRED_SIZE
	.comm	_AR5K_PHY_DESIRED_SIZE_TOT,4,2  ## @AR5K_PHY_DESIRED_SIZE_TOT
	.comm	_AR5K_PHY_AGCCOARSE,4,2         ## @AR5K_PHY_AGCCOARSE
	.comm	_AR5K_PHY_AGCCOARSE_LO,4,2      ## @AR5K_PHY_AGCCOARSE_LO
	.comm	_AR5K_PHY_AGCCOARSE_HI,4,2      ## @AR5K_PHY_AGCCOARSE_HI
	.comm	_AR5K_PHY_SIG,4,2               ## @AR5K_PHY_SIG
	.comm	_AR5K_PHY_SIG_FIRPWR,4,2        ## @AR5K_PHY_SIG_FIRPWR
	.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_noise_immunity_level ; -- Begin function ath5k_ani_set_noise_immunity_level
	.p2align	2
_ath5k_ani_set_noise_immunity_level:    ; @ath5k_ani_set_noise_immunity_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_noise_immunity_level.sz@PAGE
Lloh1:
	add	x21, x21, _ath5k_ani_set_noise_immunity_level.sz@PAGEOFF
	mov	x0, x21
	bl	_ARRAY_SIZE
	cmp	w0, w19
	b.le	LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _AR5K_PHY_DESIRED_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AR5K_PHY_DESIRED_SIZE@GOTPAGEOFF]
Lloh4:
	adrp	x9, _AR5K_PHY_DESIRED_SIZE_TOT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _AR5K_PHY_DESIRED_SIZE_TOT@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	ldr	w2, [x9]
	mov	w8, w19
	lsl	x22, x8, #2
	ldr	w3, [x21, x22]
	mov	x0, x20
	bl	_AR5K_REG_WRITE_BITS
Lloh8:
	adrp	x21, _AR5K_PHY_AGCCOARSE@GOTPAGE
Lloh9:
	ldr	x21, [x21, _AR5K_PHY_AGCCOARSE@GOTPAGEOFF]
Lloh10:
	adrp	x8, _AR5K_PHY_AGCCOARSE_LO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AR5K_PHY_AGCCOARSE_LO@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	adrp	x8, _ath5k_ani_set_noise_immunity_level.lo@PAGE
Lloh14:
	add	x8, x8, _ath5k_ani_set_noise_immunity_level.lo@PAGEOFF
	ldr	w3, [x8, x22]
	mov	x0, x20
	bl	_AR5K_REG_WRITE_BITS
Lloh15:
	adrp	x8, _AR5K_PHY_AGCCOARSE_HI@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AR5K_PHY_AGCCOARSE_HI@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x8, _ath5k_ani_set_noise_immunity_level.hi@PAGE
Lloh19:
	add	x8, x8, _ath5k_ani_set_noise_immunity_level.hi@PAGEOFF
	ldr	w3, [x8, x22]
	mov	x0, x20
	bl	_AR5K_REG_WRITE_BITS
Lloh20:
	adrp	x8, _AR5K_PHY_SIG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AR5K_PHY_SIG@GOTPAGEOFF]
Lloh22:
	adrp	x9, _AR5K_PHY_SIG_FIRPWR@GOTPAGE
Lloh23:
	ldr	x9, [x9, _AR5K_PHY_SIG_FIRPWR@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	ldr	w2, [x9]
Lloh26:
	adrp	x8, _ath5k_ani_set_noise_immunity_level.fr@PAGE
Lloh27:
	add	x8, x8, _ath5k_ani_set_noise_immunity_level.fr@PAGEOFF
	ldr	w3, [x8, x22]
	mov	x0, x20
	bl	_AR5K_REG_WRITE_BITS
	str	w19, [x20]
Lloh28:
	adrp	x8, _ATH5K_DEBUG_ANI@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ATH5K_DEBUG_ANI@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
Lloh31:
	adrp	x2, l_.str.1@PAGE
Lloh32:
	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:
Lloh33:
	adrp	x1, l_.str@PAGE
Lloh34:
	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	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh24
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @ath5k_ani_set_noise_immunity_level.lo
_ath5k_ani_set_noise_immunity_level.lo:
	.long	4294967232                      ; 0xffffffc0
	.long	4294967226                      ; 0xffffffba

	.p2align	2                               ; @ath5k_ani_set_noise_immunity_level.hi
_ath5k_ani_set_noise_immunity_level.hi:
	.long	4294967282                      ; 0xfffffff2
	.long	4294967284                      ; 0xfffffff4

	.p2align	2                               ; @ath5k_ani_set_noise_immunity_level.sz
_ath5k_ani_set_noise_immunity_level.sz:
	.long	4294967241                      ; 0xffffffc9
	.long	4294967234                      ; 0xffffffc2

	.p2align	2                               ; @ath5k_ani_set_noise_immunity_level.fr
_ath5k_ani_set_noise_immunity_level.fr:
	.long	4294967218                      ; 0xffffffb2
	.long	4294967216                      ; 0xffffffb0

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

	.comm	_AR5K_PHY_DESIRED_SIZE,4,2      ; @AR5K_PHY_DESIRED_SIZE
	.comm	_AR5K_PHY_DESIRED_SIZE_TOT,4,2  ; @AR5K_PHY_DESIRED_SIZE_TOT
	.comm	_AR5K_PHY_AGCCOARSE,4,2         ; @AR5K_PHY_AGCCOARSE
	.comm	_AR5K_PHY_AGCCOARSE_LO,4,2      ; @AR5K_PHY_AGCCOARSE_LO
	.comm	_AR5K_PHY_AGCCOARSE_HI,4,2      ; @AR5K_PHY_AGCCOARSE_HI
	.comm	_AR5K_PHY_SIG,4,2               ; @AR5K_PHY_SIG
	.comm	_AR5K_PHY_SIG_FIRPWR,4,2        ; @AR5K_PHY_SIG_FIRPWR
	.comm	_ATH5K_DEBUG_ANI,4,2            ; @ATH5K_DEBUG_ANI
l_.str.1:                               ; @.str.1
	.asciz	"new level %d"

.subsections_via_symbols
