	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9003_hw_drive_strength_apply
_ar9003_hw_drive_strength_apply:        ## @ar9003_hw_drive_strength_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rdi), %r14d
	xorl	%edi, %edi
	callq	_BIT
	testl	%r14d, %eax
	je	LBB0_1
## %bb.2:
	movq	_AR_PHY_65NM_CH0_BIAS1@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_REG_READ
	andq	$-16777153, %rax                ## imm = 0xFF00003F
	leaq	11983680(%rax), %rdx
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_REG_WRITE
	movq	_AR_PHY_65NM_CH0_BIAS2@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_REG_READ
	andl	$31, %eax
	orq	$-1227133536, %rax              ## imm = 0xB6DB6DA0
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	callq	_REG_WRITE
	movq	_AR_PHY_65NM_CH0_BIAS4@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_REG_READ
	andl	$8388607, %eax                  ## imm = 0x7FFFFF
	orq	$-1233125376, %rax              ## imm = 0xB6800000
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_REG_WRITE                      ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR_PHY_65NM_CH0_BIAS1,4,2      ## @AR_PHY_65NM_CH0_BIAS1
	.comm	_AR_PHY_65NM_CH0_BIAS2,4,2      ## @AR_PHY_65NM_CH0_BIAS2
	.comm	_AR_PHY_65NM_CH0_BIAS4,4,2      ## @AR_PHY_65NM_CH0_BIAS4
	.no_dead_strip	_ar9003_hw_drive_strength_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_drive_strength_apply
_ar9003_hw_drive_strength_apply:        ; @ar9003_hw_drive_strength_apply
	.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	x19, x0
	ldr	w20, [x0]
	mov	w0, #0
	bl	_BIT
	tst	w0, w20
	b.eq	LBB0_2
; %bb.1:
Lloh0:
	adrp	x20, _AR_PHY_65NM_CH0_BIAS1@GOTPAGE
Lloh1:
	ldr	x20, [x20, _AR_PHY_65NM_CH0_BIAS1@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_REG_READ
	mov	x2, x0
	mov	x8, #56173
	movk	x8, #2, lsl #16
	bfi	x2, x8, #6, #18
	ldr	w1, [x20]
	mov	x0, x19
	bl	_REG_WRITE
Lloh2:
	adrp	x20, _AR_PHY_65NM_CH0_BIAS2@GOTPAGE
Lloh3:
	ldr	x20, [x20, _AR_PHY_65NM_CH0_BIAS2@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_REG_READ
	and	w8, w0, #0x1f
	mov	x9, #-37472
	movk	x9, #46811, lsl #16
	orr	x2, x8, x9
	ldr	w1, [x20]
	mov	x0, x19
	bl	_REG_WRITE
Lloh4:
	adrp	x20, _AR_PHY_65NM_CH0_BIAS4@GOTPAGE
Lloh5:
	ldr	x20, [x20, _AR_PHY_65NM_CH0_BIAS4@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_REG_READ
	and	w8, w0, #0x7fffff
	mov	x9, #-65536
	movk	x9, #46720, lsl #16
	orr	x2, x8, x9
	ldr	w1, [x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_REG_WRITE
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AR_PHY_65NM_CH0_BIAS1,4,2      ; @AR_PHY_65NM_CH0_BIAS1
	.comm	_AR_PHY_65NM_CH0_BIAS2,4,2      ; @AR_PHY_65NM_CH0_BIAS2
	.comm	_AR_PHY_65NM_CH0_BIAS4,4,2      ; @AR_PHY_65NM_CH0_BIAS4
	.no_dead_strip	_ar9003_hw_drive_strength_apply
.subsections_via_symbols
