	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8187_set_anaparam
_rtl8187_set_anaparam:                  ## @rtl8187_set_anaparam
	.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, %rbx
	cmpq	$0, 8(%rdi)
	je	LBB0_1
## %bb.2:
	testl	%esi, %esi
	je	LBB0_4
## %bb.3:
	movq	_RTL8187B_RTL8225_ANAPARAM3_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_RTL8187B_RTL8225_ANAPARAM2_ON@GOTPCREL(%rip), %rcx
	movq	_RTL8187B_RTL8225_ANAPARAM_ON@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	testl	%esi, %esi
	movq	_RTL8187_RTL8225_ANAPARAM_ON@GOTPCREL(%rip), %rax
	cmoveq	_RTL8187_RTL8225_ANAPARAM_OFF@GOTPCREL(%rip), %rax
	movq	_RTL8187_RTL8225_ANAPARAM2_ON@GOTPCREL(%rip), %rcx
	cmoveq	_RTL8187_RTL8225_ANAPARAM2_OFF@GOTPCREL(%rip), %rcx
                                        ## implicit-def: $edx
                                        ## kill: killed $edx
	jmp	LBB0_5
LBB0_4:
	movq	_RTL8187B_RTL8225_ANAPARAM3_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_RTL8187B_RTL8225_ANAPARAM2_OFF@GOTPCREL(%rip), %rcx
	movq	_RTL8187B_RTL8225_ANAPARAM_OFF@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rcx), %r12d
	movl	(%rax), %r13d
	movq	(%rbx), %rsi
	movq	_RTL818X_EEPROM_CMD_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_rtl818x_iowrite8
	movq	(%rbx), %rsi
	addq	$4, %rsi
	movq	%rbx, %rdi
	callq	_rtl818x_ioread8
	movl	%eax, %r15d
	movq	_RTL818X_CONFIG3_ANAPARAM_WRITE@GOTPCREL(%rip), %r14
	orl	(%r14), %r15d
	movq	(%rbx), %rsi
	addq	$4, %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_rtl818x_iowrite8
	movq	(%rbx), %rsi
	addq	$16, %rsi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_rtl818x_iowrite32
	movq	(%rbx), %rsi
	addq	$12, %rsi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_rtl818x_iowrite32
	cmpq	$0, 8(%rbx)
	je	LBB0_7
## %bb.6:
	movq	(%rbx), %rsi
	addq	$8, %rsi
	movq	%rbx, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_rtl818x_iowrite8
LBB0_7:
	movl	(%r14), %eax
	notl	%eax
	andl	%eax, %r15d
	movq	(%rbx), %rsi
	addq	$4, %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_rtl818x_iowrite8
	movq	(%rbx), %rsi
	movq	_RTL818X_EEPROM_CMD_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtl818x_iowrite8               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RTL8187_RTL8225_ANAPARAM_ON,4,2 ## @RTL8187_RTL8225_ANAPARAM_ON
	.comm	_RTL8187_RTL8225_ANAPARAM2_ON,4,2 ## @RTL8187_RTL8225_ANAPARAM2_ON
	.comm	_RTL8187_RTL8225_ANAPARAM_OFF,4,2 ## @RTL8187_RTL8225_ANAPARAM_OFF
	.comm	_RTL8187_RTL8225_ANAPARAM2_OFF,4,2 ## @RTL8187_RTL8225_ANAPARAM2_OFF
	.comm	_RTL8187B_RTL8225_ANAPARAM_ON,4,2 ## @RTL8187B_RTL8225_ANAPARAM_ON
	.comm	_RTL8187B_RTL8225_ANAPARAM2_ON,4,2 ## @RTL8187B_RTL8225_ANAPARAM2_ON
	.comm	_RTL8187B_RTL8225_ANAPARAM3_ON,4,2 ## @RTL8187B_RTL8225_ANAPARAM3_ON
	.comm	_RTL8187B_RTL8225_ANAPARAM_OFF,4,2 ## @RTL8187B_RTL8225_ANAPARAM_OFF
	.comm	_RTL8187B_RTL8225_ANAPARAM2_OFF,4,2 ## @RTL8187B_RTL8225_ANAPARAM2_OFF
	.comm	_RTL8187B_RTL8225_ANAPARAM3_OFF,4,2 ## @RTL8187B_RTL8225_ANAPARAM3_OFF
	.comm	_RTL818X_EEPROM_CMD_CONFIG,4,2  ## @RTL818X_EEPROM_CMD_CONFIG
	.comm	_RTL818X_CONFIG3_ANAPARAM_WRITE,4,2 ## @RTL818X_CONFIG3_ANAPARAM_WRITE
	.comm	_RTL818X_EEPROM_CMD_NORMAL,4,2  ## @RTL818X_EEPROM_CMD_NORMAL
	.no_dead_strip	_rtl8187_set_anaparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8187_set_anaparam
_rtl8187_set_anaparam:                  ; @rtl8187_set_anaparam
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
; %bb.1:
	cbz	w1, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _RTL8187B_RTL8225_ANAPARAM3_ON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RTL8187B_RTL8225_ANAPARAM3_ON@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x9, _RTL8187B_RTL8225_ANAPARAM2_ON@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RTL8187B_RTL8225_ANAPARAM2_ON@GOTPAGEOFF]
Lloh5:
	adrp	x8, _RTL8187B_RTL8225_ANAPARAM_ON@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RTL8187B_RTL8225_ANAPARAM_ON@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh7:
	adrp	x8, _RTL8187_RTL8225_ANAPARAM_ON@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RTL8187_RTL8225_ANAPARAM_ON@GOTPAGEOFF]
Lloh9:
	adrp	x9, _RTL8187_RTL8225_ANAPARAM_OFF@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RTL8187_RTL8225_ANAPARAM_OFF@GOTPAGEOFF]
	cmp	w1, #0
	csel	x8, x9, x8, eq
Lloh11:
	adrp	x9, _RTL8187_RTL8225_ANAPARAM2_ON@GOTPAGE
Lloh12:
	ldr	x9, [x9, _RTL8187_RTL8225_ANAPARAM2_ON@GOTPAGEOFF]
Lloh13:
	adrp	x10, _RTL8187_RTL8225_ANAPARAM2_OFF@GOTPAGE
Lloh14:
	ldr	x10, [x10, _RTL8187_RTL8225_ANAPARAM2_OFF@GOTPAGEOFF]
	csel	x9, x10, x9, eq
                                        ; implicit-def: $w20
	b	LBB0_5
LBB0_4:
Lloh15:
	adrp	x8, _RTL8187B_RTL8225_ANAPARAM3_OFF@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RTL8187B_RTL8225_ANAPARAM3_OFF@GOTPAGEOFF]
Lloh17:
	ldr	w20, [x8]
Lloh18:
	adrp	x9, _RTL8187B_RTL8225_ANAPARAM2_OFF@GOTPAGE
Lloh19:
	ldr	x9, [x9, _RTL8187B_RTL8225_ANAPARAM2_OFF@GOTPAGEOFF]
Lloh20:
	adrp	x8, _RTL8187B_RTL8225_ANAPARAM_OFF@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RTL8187B_RTL8225_ANAPARAM_OFF@GOTPAGEOFF]
LBB0_5:
	ldr	w22, [x9]
	ldr	w23, [x8]
	ldr	x1, [x19]
Lloh22:
	adrp	x8, _RTL818X_EEPROM_CMD_CONFIG@GOTPAGE
Lloh23:
	ldr	x8, [x8, _RTL818X_EEPROM_CMD_CONFIG@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_rtl818x_iowrite8
	ldr	x8, [x19]
	add	x1, x8, #4
	mov	x0, x19
	bl	_rtl818x_ioread8
Lloh25:
	adrp	x24, _RTL818X_CONFIG3_ANAPARAM_WRITE@GOTPAGE
Lloh26:
	ldr	x24, [x24, _RTL818X_CONFIG3_ANAPARAM_WRITE@GOTPAGEOFF]
	ldr	w8, [x24]
	orr	w21, w8, w0
	ldr	x8, [x19]
	add	x1, x8, #4
	mov	x0, x19
	mov	x2, x21
	bl	_rtl818x_iowrite8
	ldr	x8, [x19]
	add	x1, x8, #16
	mov	x0, x19
	mov	x2, x23
	bl	_rtl818x_iowrite32
	ldr	x8, [x19]
	add	x1, x8, #12
	mov	x0, x19
	mov	x2, x22
	bl	_rtl818x_iowrite32
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	x8, [x19]
	add	x1, x8, #8
	mov	x0, x19
	mov	x2, x20
	bl	_rtl818x_iowrite8
LBB0_7:
	ldr	w8, [x24]
	bic	w2, w21, w8
	ldr	x8, [x19]
	add	x1, x8, #4
	mov	x0, x19
	bl	_rtl818x_iowrite8
	ldr	x1, [x19]
Lloh27:
	adrp	x8, _RTL818X_EEPROM_CMD_NORMAL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _RTL818X_EEPROM_CMD_NORMAL@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_rtl818x_iowrite8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_RTL8187_RTL8225_ANAPARAM_ON,4,2 ; @RTL8187_RTL8225_ANAPARAM_ON
	.comm	_RTL8187_RTL8225_ANAPARAM2_ON,4,2 ; @RTL8187_RTL8225_ANAPARAM2_ON
	.comm	_RTL8187_RTL8225_ANAPARAM_OFF,4,2 ; @RTL8187_RTL8225_ANAPARAM_OFF
	.comm	_RTL8187_RTL8225_ANAPARAM2_OFF,4,2 ; @RTL8187_RTL8225_ANAPARAM2_OFF
	.comm	_RTL8187B_RTL8225_ANAPARAM_ON,4,2 ; @RTL8187B_RTL8225_ANAPARAM_ON
	.comm	_RTL8187B_RTL8225_ANAPARAM2_ON,4,2 ; @RTL8187B_RTL8225_ANAPARAM2_ON
	.comm	_RTL8187B_RTL8225_ANAPARAM3_ON,4,2 ; @RTL8187B_RTL8225_ANAPARAM3_ON
	.comm	_RTL8187B_RTL8225_ANAPARAM_OFF,4,2 ; @RTL8187B_RTL8225_ANAPARAM_OFF
	.comm	_RTL8187B_RTL8225_ANAPARAM2_OFF,4,2 ; @RTL8187B_RTL8225_ANAPARAM2_OFF
	.comm	_RTL8187B_RTL8225_ANAPARAM3_OFF,4,2 ; @RTL8187B_RTL8225_ANAPARAM3_OFF
	.comm	_RTL818X_EEPROM_CMD_CONFIG,4,2  ; @RTL818X_EEPROM_CMD_CONFIG
	.comm	_RTL818X_CONFIG3_ANAPARAM_WRITE,4,2 ; @RTL818X_CONFIG3_ANAPARAM_WRITE
	.comm	_RTL818X_EEPROM_CMD_NORMAL,4,2  ; @RTL818X_EEPROM_CMD_NORMAL
	.no_dead_strip	_rtl8187_set_anaparam
.subsections_via_symbols
