	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9003_hw_set_radar_params
_ar9003_hw_set_radar_params:            ## @ar9003_hw_set_radar_params
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.1:
	movq	%rsi, %r12
	movq	_AR_PHY_RADAR_0_ENA@GOTPCREL(%rip), %rax
	movq	_AR_PHY_RADAR_0_FFT_ENA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	orl	(%rax), %r15d
	movl	36(%rsi), %edi
	movq	_AR_PHY_RADAR_0_FIRPWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SM
	orl	%eax, %r15d
	movl	32(%r12), %edi
	movq	_AR_PHY_RADAR_0_RRSSI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SM
	movl	%eax, %ebx
	movl	28(%r12), %edi
	movq	_AR_PHY_RADAR_0_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SM
	orl	%eax, %ebx
	orl	%r15d, %ebx
	movl	24(%r12), %edi
	movq	_AR_PHY_RADAR_0_PRSSI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SM
	movl	%eax, %r15d
	movl	20(%r12), %edi
	movq	_AR_PHY_RADAR_0_INBAND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SM
	orl	%eax, %r15d
	orl	%ebx, %r15d
	movq	_AR_PHY_RADAR_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_REG_READ
	movq	_AR_PHY_RADAR_1_MAXLEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_AR_PHY_RADAR_1_RELSTEP_THRESH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	orl	%esi, %r13d
	movq	_AR_PHY_RADAR_1_RELPWR_THRESH@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r13d
	notl	%r13d
	andl	%eax, %r13d
	movq	_AR_PHY_RADAR_1_MAX_RRSSI@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movq	_AR_PHY_RADAR_1_BLOCK_CHECK@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movl	16(%r12), %edi
	callq	_SM
	movl	%eax, %ebx
	movl	12(%r12), %edi
	movq	_AR_PHY_RADAR_1_RELSTEP_THRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SM
	orl	%eax, %ebx
	movl	8(%r12), %edi
	movq	_AR_PHY_RADAR_1_RELPWR_THRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SM
	orl	%eax, %ebx
	orl	%r13d, %ebx
	movq	_AR_PHY_RADAR_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_REG_WRITE
	movq	_AR_PHY_RADAR_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_REG_WRITE
	cmpq	$0, (%r12)
	movq	_AR_PHY_RADAR_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_PHY_RADAR_EXT_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	je	LBB0_3
## %bb.2:
	callq	_REG_SET_BIT
	jmp	LBB0_4
LBB0_8:
	movq	_AR_PHY_RADAR_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_PHY_RADAR_0_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REG_CLR_BIT                    ## TAILCALL
LBB0_3:
	callq	_REG_CLR_BIT
LBB0_4:
	movq	%r14, %rdi
	callq	_AR_SREV_9300
	testq	%rax, %rax
	jne	LBB0_9
## %bb.5:
	movq	%r14, %rdi
	callq	_AR_SREV_9340
	testq	%rax, %rax
	jne	LBB0_9
## %bb.6:
	movq	%r14, %rdi
	callq	_AR_SREV_9580
	testq	%rax, %rax
	je	LBB0_7
LBB0_9:
	movl	(%r14), %edi
	addq	$4, %r14
	callq	_IS_CHAN_HT40
	cmpq	$1, %rax
	movl	$2, %esi
	sbbl	$0, %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REG_WRITE_ARRAY                ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR_PHY_RADAR_0,4,2             ## @AR_PHY_RADAR_0
	.comm	_AR_PHY_RADAR_0_ENA,4,2         ## @AR_PHY_RADAR_0_ENA
	.comm	_AR_PHY_RADAR_0_FFT_ENA,4,2     ## @AR_PHY_RADAR_0_FFT_ENA
	.comm	_AR_PHY_RADAR_0_FIRPWR,4,2      ## @AR_PHY_RADAR_0_FIRPWR
	.comm	_AR_PHY_RADAR_0_RRSSI,4,2       ## @AR_PHY_RADAR_0_RRSSI
	.comm	_AR_PHY_RADAR_0_HEIGHT,4,2      ## @AR_PHY_RADAR_0_HEIGHT
	.comm	_AR_PHY_RADAR_0_PRSSI,4,2       ## @AR_PHY_RADAR_0_PRSSI
	.comm	_AR_PHY_RADAR_0_INBAND,4,2      ## @AR_PHY_RADAR_0_INBAND
	.comm	_AR_PHY_RADAR_1,4,2             ## @AR_PHY_RADAR_1
	.comm	_AR_PHY_RADAR_1_MAXLEN,4,2      ## @AR_PHY_RADAR_1_MAXLEN
	.comm	_AR_PHY_RADAR_1_RELSTEP_THRESH,4,2 ## @AR_PHY_RADAR_1_RELSTEP_THRESH
	.comm	_AR_PHY_RADAR_1_RELPWR_THRESH,4,2 ## @AR_PHY_RADAR_1_RELPWR_THRESH
	.comm	_AR_PHY_RADAR_1_MAX_RRSSI,4,2   ## @AR_PHY_RADAR_1_MAX_RRSSI
	.comm	_AR_PHY_RADAR_1_BLOCK_CHECK,4,2 ## @AR_PHY_RADAR_1_BLOCK_CHECK
	.comm	_AR_PHY_RADAR_EXT,4,2           ## @AR_PHY_RADAR_EXT
	.comm	_AR_PHY_RADAR_EXT_ENA,4,2       ## @AR_PHY_RADAR_EXT_ENA
	.no_dead_strip	_ar9003_hw_set_radar_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar9003_hw_set_radar_params
_ar9003_hw_set_radar_params:            ; @ar9003_hw_set_radar_params
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	cbz	x1, LBB0_3
; %bb.1:
	mov	x20, x1
Lloh0:
	adrp	x8, _AR_PHY_RADAR_0_ENA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR_PHY_RADAR_0_ENA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AR_PHY_RADAR_0_FFT_ENA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AR_PHY_RADAR_0_FFT_ENA@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w21, w9, w8
	ldr	w0, [x1, #36]
Lloh6:
	adrp	x8, _AR_PHY_RADAR_0_FIRPWR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AR_PHY_RADAR_0_FIRPWR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_SM
	orr	w21, w21, w0
	ldr	w0, [x20, #32]
Lloh9:
	adrp	x8, _AR_PHY_RADAR_0_RRSSI@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AR_PHY_RADAR_0_RRSSI@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_SM
	orr	w21, w21, w0
	ldr	w0, [x20, #28]
Lloh12:
	adrp	x8, _AR_PHY_RADAR_0_HEIGHT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AR_PHY_RADAR_0_HEIGHT@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_SM
	orr	w21, w21, w0
	ldr	w0, [x20, #24]
Lloh15:
	adrp	x8, _AR_PHY_RADAR_0_PRSSI@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AR_PHY_RADAR_0_PRSSI@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_SM
	orr	w21, w21, w0
	ldr	w0, [x20, #20]
Lloh18:
	adrp	x8, _AR_PHY_RADAR_0_INBAND@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AR_PHY_RADAR_0_INBAND@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_SM
	orr	w21, w21, w0
Lloh21:
	adrp	x23, _AR_PHY_RADAR_1@GOTPAGE
Lloh22:
	ldr	x23, [x23, _AR_PHY_RADAR_1@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_REG_READ
Lloh23:
	adrp	x8, _AR_PHY_RADAR_1_MAXLEN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AR_PHY_RADAR_1_MAXLEN@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x22, _AR_PHY_RADAR_1_RELSTEP_THRESH@GOTPAGE
Lloh27:
	ldr	x22, [x22, _AR_PHY_RADAR_1_RELSTEP_THRESH@GOTPAGEOFF]
	ldr	w8, [x22]
	orr	w8, w8, w1
Lloh28:
	adrp	x24, _AR_PHY_RADAR_1_RELPWR_THRESH@GOTPAGE
Lloh29:
	ldr	x24, [x24, _AR_PHY_RADAR_1_RELPWR_THRESH@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w8, w8, w9
	bic	w8, w0, w8
Lloh30:
	adrp	x9, _AR_PHY_RADAR_1_MAX_RRSSI@GOTPAGE
Lloh31:
	ldr	x9, [x9, _AR_PHY_RADAR_1_MAX_RRSSI@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh33:
	adrp	x9, _AR_PHY_RADAR_1_BLOCK_CHECK@GOTPAGE
Lloh34:
	ldr	x9, [x9, _AR_PHY_RADAR_1_BLOCK_CHECK@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w25, w8, w9
	ldr	w0, [x20, #16]
	bl	_SM
	orr	w25, w25, w0
	ldr	w0, [x20, #12]
	ldr	w1, [x22]
	bl	_SM
	orr	w22, w25, w0
	ldr	w0, [x20, #8]
	ldr	w1, [x24]
	bl	_SM
	orr	w22, w22, w0
Lloh36:
	adrp	x8, _AR_PHY_RADAR_0@GOTPAGE
Lloh37:
	ldr	x8, [x8, _AR_PHY_RADAR_0@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_REG_WRITE
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x22
	bl	_REG_WRITE
	ldr	x8, [x20]
Lloh39:
	adrp	x9, _AR_PHY_RADAR_EXT@GOTPAGE
Lloh40:
	ldr	x9, [x9, _AR_PHY_RADAR_EXT@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x9]
Lloh42:
	adrp	x9, _AR_PHY_RADAR_EXT_ENA@GOTPAGE
Lloh43:
	ldr	x9, [x9, _AR_PHY_RADAR_EXT_ENA@GOTPAGEOFF]
Lloh44:
	ldr	w2, [x9]
	mov	x0, x19
	cbz	x8, LBB0_4
; %bb.2:
	bl	_REG_SET_BIT
	b	LBB0_5
LBB0_3:
Lloh45:
	adrp	x8, _AR_PHY_RADAR_0@GOTPAGE
Lloh46:
	ldr	x8, [x8, _AR_PHY_RADAR_0@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
Lloh48:
	adrp	x8, _AR_PHY_RADAR_0_ENA@GOTPAGE
Lloh49:
	ldr	x8, [x8, _AR_PHY_RADAR_0_ENA@GOTPAGEOFF]
Lloh50:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_REG_CLR_BIT
LBB0_4:
	bl	_REG_CLR_BIT
LBB0_5:
	mov	x0, x19
	bl	_AR_SREV_9300
	cbnz	x0, LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_AR_SREV_9340
	cbnz	x0, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_AR_SREV_9580
	cbz	x0, LBB0_9
LBB0_8:
	ldr	w0, [x19], #4
	bl	_IS_CHAN_HT40
	cmp	x0, #0
	mov	w8, #1
	cinc	w1, w8, ne
	mov	x0, x19
	mov	w2, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_REG_WRITE_ARRAY
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_AR_PHY_RADAR_0,4,2             ; @AR_PHY_RADAR_0
	.comm	_AR_PHY_RADAR_0_ENA,4,2         ; @AR_PHY_RADAR_0_ENA
	.comm	_AR_PHY_RADAR_0_FFT_ENA,4,2     ; @AR_PHY_RADAR_0_FFT_ENA
	.comm	_AR_PHY_RADAR_0_FIRPWR,4,2      ; @AR_PHY_RADAR_0_FIRPWR
	.comm	_AR_PHY_RADAR_0_RRSSI,4,2       ; @AR_PHY_RADAR_0_RRSSI
	.comm	_AR_PHY_RADAR_0_HEIGHT,4,2      ; @AR_PHY_RADAR_0_HEIGHT
	.comm	_AR_PHY_RADAR_0_PRSSI,4,2       ; @AR_PHY_RADAR_0_PRSSI
	.comm	_AR_PHY_RADAR_0_INBAND,4,2      ; @AR_PHY_RADAR_0_INBAND
	.comm	_AR_PHY_RADAR_1,4,2             ; @AR_PHY_RADAR_1
	.comm	_AR_PHY_RADAR_1_MAXLEN,4,2      ; @AR_PHY_RADAR_1_MAXLEN
	.comm	_AR_PHY_RADAR_1_RELSTEP_THRESH,4,2 ; @AR_PHY_RADAR_1_RELSTEP_THRESH
	.comm	_AR_PHY_RADAR_1_RELPWR_THRESH,4,2 ; @AR_PHY_RADAR_1_RELPWR_THRESH
	.comm	_AR_PHY_RADAR_1_MAX_RRSSI,4,2   ; @AR_PHY_RADAR_1_MAX_RRSSI
	.comm	_AR_PHY_RADAR_1_BLOCK_CHECK,4,2 ; @AR_PHY_RADAR_1_BLOCK_CHECK
	.comm	_AR_PHY_RADAR_EXT,4,2           ; @AR_PHY_RADAR_EXT
	.comm	_AR_PHY_RADAR_EXT_ENA,4,2       ; @AR_PHY_RADAR_EXT_ENA
	.no_dead_strip	_ar9003_hw_set_radar_params
.subsections_via_symbols
