	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9003_hw_thermometer_apply
_ar9003_hw_thermometer_apply:           ## @ar9003_hw_thermometer_apply
	.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, %r15
	callq	_ar9003_hw_get_thermometer
	movl	%eax, %r14d
	movl	%eax, %ebx
	notl	%ebx
	shrl	$31, %ebx
	movq	_AR_PHY_65NM_CH0_RXTX4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_PHY_65NM_CH0_RXTX4_THERM_ON_OVR@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r15, %rdi
	movl	%ebx, %ecx
	callq	_REG_RMW_FIELD
	movl	(%r15), %r12d
	movl	$1, %edi
	callq	_BIT
	testl	%r12d, %eax
	je	LBB0_2
## %bb.1:
	movq	_AR_PHY_65NM_CH1_RXTX4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movq	%r15, %rdi
	movl	%ebx, %ecx
	callq	_REG_RMW_FIELD
LBB0_2:
	movl	(%r15), %r12d
	movl	$2, %edi
	callq	_BIT
	testl	%r12d, %eax
	je	LBB0_4
## %bb.3:
	movq	_AR_PHY_65NM_CH2_RXTX4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movq	%r15, %rdi
	movl	%ebx, %ecx
	callq	_REG_RMW_FIELD
LBB0_4:
	xorl	%ecx, %ecx
	testl	%r14d, %r14d
	sete	%cl
	movq	_AR_PHY_65NM_CH0_RXTX4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_PHY_65NM_CH0_RXTX4_THERM_ON@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r15, %rdi
	callq	_REG_RMW_FIELD
	movl	(%r15), %ebx
	movl	$1, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_6
## %bb.5:
	xorl	%ecx, %ecx
	cmpl	$1, %r14d
	sete	%cl
	movq	_AR_PHY_65NM_CH1_RXTX4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	movq	%r15, %rdi
	callq	_REG_RMW_FIELD
LBB0_6:
	movl	(%r15), %ebx
	movl	$2, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_7
## %bb.8:
	xorl	%ecx, %ecx
	cmpl	$2, %r14d
	sete	%cl
	movq	_AR_PHY_65NM_CH2_RXTX4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REG_RMW_FIELD                  ## 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_65NM_CH0_RXTX4,4,2      ## @AR_PHY_65NM_CH0_RXTX4
	.comm	_AR_PHY_65NM_CH0_RXTX4_THERM_ON_OVR,4,2 ## @AR_PHY_65NM_CH0_RXTX4_THERM_ON_OVR
	.comm	_AR_PHY_65NM_CH1_RXTX4,4,2      ## @AR_PHY_65NM_CH1_RXTX4
	.comm	_AR_PHY_65NM_CH2_RXTX4,4,2      ## @AR_PHY_65NM_CH2_RXTX4
	.comm	_AR_PHY_65NM_CH0_RXTX4_THERM_ON,4,2 ## @AR_PHY_65NM_CH0_RXTX4_THERM_ON
	.no_dead_strip	_ar9003_hw_thermometer_apply
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar9003_hw_thermometer_apply
_ar9003_hw_thermometer_apply:           ; @ar9003_hw_thermometer_apply
	.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
	bl	_ar9003_hw_get_thermometer
	mov	x20, x0
	mvn	w8, w0
	lsr	w21, w8, #31
Lloh0:
	adrp	x24, _AR_PHY_65NM_CH0_RXTX4@GOTPAGE
Lloh1:
	ldr	x24, [x24, _AR_PHY_65NM_CH0_RXTX4@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh2:
	adrp	x25, _AR_PHY_65NM_CH0_RXTX4_THERM_ON_OVR@GOTPAGE
Lloh3:
	ldr	x25, [x25, _AR_PHY_65NM_CH0_RXTX4_THERM_ON_OVR@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x0, x19
	mov	x3, x21
	bl	_REG_RMW_FIELD
	ldr	w22, [x19]
	mov	w0, #1
	bl	_BIT
Lloh4:
	adrp	x23, _AR_PHY_65NM_CH1_RXTX4@GOTPAGE
Lloh5:
	ldr	x23, [x23, _AR_PHY_65NM_CH1_RXTX4@GOTPAGEOFF]
	tst	w0, w22
	b.eq	LBB0_2
; %bb.1:
	ldr	w1, [x23]
	ldr	w2, [x25]
	mov	x0, x19
	mov	x3, x21
	bl	_REG_RMW_FIELD
LBB0_2:
	ldr	w26, [x19]
	mov	w0, #2
	bl	_BIT
Lloh6:
	adrp	x22, _AR_PHY_65NM_CH2_RXTX4@GOTPAGE
Lloh7:
	ldr	x22, [x22, _AR_PHY_65NM_CH2_RXTX4@GOTPAGEOFF]
	tst	w0, w26
	b.eq	LBB0_4
; %bb.3:
	ldr	w1, [x22]
	ldr	w2, [x25]
	mov	x0, x19
	mov	x3, x21
	bl	_REG_RMW_FIELD
LBB0_4:
	cmp	w20, #0
	cset	w3, eq
	ldr	w1, [x24]
Lloh8:
	adrp	x21, _AR_PHY_65NM_CH0_RXTX4_THERM_ON@GOTPAGE
Lloh9:
	ldr	x21, [x21, _AR_PHY_65NM_CH0_RXTX4_THERM_ON@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_REG_RMW_FIELD
	ldr	w24, [x19]
	mov	w0, #1
	bl	_BIT
	tst	w0, w24
	b.eq	LBB0_6
; %bb.5:
	cmp	w20, #1
	cset	w3, eq
	ldr	w1, [x23]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_REG_RMW_FIELD
LBB0_6:
	ldr	w23, [x19]
	mov	w0, #2
	bl	_BIT
	tst	w0, w23
	b.eq	LBB0_8
; %bb.7:
	cmp	w20, #2
	cset	w3, eq
	ldr	w1, [x22]
	ldr	w2, [x21]
	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_RMW_FIELD
LBB0_8:
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_AR_PHY_65NM_CH0_RXTX4,4,2      ; @AR_PHY_65NM_CH0_RXTX4
	.comm	_AR_PHY_65NM_CH0_RXTX4_THERM_ON_OVR,4,2 ; @AR_PHY_65NM_CH0_RXTX4_THERM_ON_OVR
	.comm	_AR_PHY_65NM_CH1_RXTX4,4,2      ; @AR_PHY_65NM_CH1_RXTX4
	.comm	_AR_PHY_65NM_CH2_RXTX4,4,2      ; @AR_PHY_65NM_CH2_RXTX4
	.comm	_AR_PHY_65NM_CH0_RXTX4_THERM_ON,4,2 ; @AR_PHY_65NM_CH0_RXTX4_THERM_ON
	.no_dead_strip	_ar9003_hw_thermometer_apply
.subsections_via_symbols
