	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8187_init_hw
_rtl8187_init_hw:                       ## @rtl8187_init_hw
	.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
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_rtl8187_set_anaparam
	movq	(%rbx), %rsi
	addq	$68, %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rtl818x_iowrite16
	movl	$200, %edi
	callq	_msleep
	movl	$65048, %esi                    ## imm = 0xFE18
	movq	%rbx, %rdi
	movl	$16, %edx
	callq	_rtl818x_iowrite8
	movl	$65048, %esi                    ## imm = 0xFE18
	movq	%rbx, %rdi
	movl	$17, %edx
	callq	_rtl818x_iowrite8
	movl	$65048, %esi                    ## imm = 0xFE18
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rtl818x_iowrite8
	movl	$200, %edi
	callq	_msleep
	movq	%r15, %rdi
	callq	_rtl8187_cmd_reset
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_rtl8187_set_anaparam
	movq	(%rbx), %rsi
	addq	$56, %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rtl818x_iowrite16
	movq	(%rbx), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rtl818x_iowrite8
	movq	(%rbx), %rsi
	addq	$56, %rsi
	movq	%rbx, %rdi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_rtl818x_iowrite16
	movq	(%rbx), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rtl818x_iowrite8
	movq	(%rbx), %rsi
	addq	$4, %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rtl818x_iowrite8
	movq	(%rbx), %rsi
	addq	$8, %rsi
	movq	_RTL818X_EEPROM_CMD_CONFIG@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_rtl818x_iowrite8
	movl	$65524, %esi                    ## imm = 0xFFF4
	movq	%rbx, %rdi
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_rtl818x_iowrite16
	movq	(%rbx), %rsi
	addq	$12, %rsi
	movq	%rbx, %rdi
	callq	_rtl818x_ioread8
                                        ## kill: def $eax killed $eax def $rax
	andl	$63, %eax
	leal	128(%rax), %edx
	movq	(%rbx), %rsi
	addq	$12, %rsi
	movq	%rbx, %rdi
	callq	_rtl818x_iowrite8
	movq	(%rbx), %rsi
	addq	$8, %rsi
	movq	_RTL818X_EEPROM_CMD_NORMAL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%rbx, %rdi
	callq	_rtl818x_iowrite8
	movq	(%rbx), %rsi
	addq	$64, %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rtl818x_iowrite32
	movq	(%rbx), %rsi
	addq	$16, %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rtl818x_iowrite8
	movq	(%rbx), %rsi
	addq	$20, %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rtl818x_iowrite8
	movq	(%rbx), %rsi
	addq	$24, %rsi
	movq	%rbx, %rdi
	movl	$128, %edx
	callq	_rtl818x_iowrite8
	movq	(%rbx), %rsi
	addq	$40, %rsi
	movq	%rbx, %rdi
	movl	$499, %edx                      ## imm = 0x1F3
	callq	_rtl818x_iowrite16
	movq	(%rbx), %rsi
	addq	$56, %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rtl818x_iowrite16
	movq	(%rbx), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rtl818x_iowrite8
	movl	$65107, %esi                    ## imm = 0xFE53
	movq	%rbx, %rdi
	callq	_rtl818x_ioread8
	orl	$128, %eax
	movl	$65107, %esi                    ## imm = 0xFE53
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_rtl818x_iowrite8
	movq	(%rbx), %rsi
	addq	$56, %rsi
	movq	%rbx, %rdi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_rtl818x_iowrite16
	movq	(%rbx), %rsi
	movq	%rbx, %rdi
	movl	$32, %edx
	callq	_rtl818x_iowrite8
	movq	(%rbx), %rsi
	addq	$4, %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rtl818x_iowrite8
	movq	(%rbx), %rsi
	addq	$60, %rsi
	movq	%rbx, %rdi
	movl	$128, %edx
	callq	_rtl818x_iowrite16
	movq	(%rbx), %rsi
	addq	$56, %rsi
	movq	%rbx, %rdi
	movl	$128, %edx
	callq	_rtl818x_iowrite16
	movq	(%rbx), %rsi
	addq	$44, %rsi
	movq	%rbx, %rdi
	movl	$128, %edx
	callq	_rtl818x_iowrite16
	movl	$100, %edi
	callq	_msleep
	movq	(%rbx), %rsi
	addq	$52, %rsi
	movq	%rbx, %rdi
	movl	$688136, %edx                   ## imm = 0xA8008
	callq	_rtl818x_iowrite32
	movq	(%rbx), %rsi
	addq	$40, %rsi
	movq	%rbx, %rdi
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_rtl818x_iowrite16
	movq	(%rbx), %rsi
	addq	$48, %rsi
	movq	%rbx, %rdi
	movl	$1048644, %edx                  ## imm = 0x100044
	callq	_rtl818x_iowrite32
	movq	(%rbx), %rsi
	addq	$8, %rsi
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_rtl818x_iowrite8
	movq	(%rbx), %rsi
	addq	$28, %rsi
	movq	%rbx, %rdi
	movl	$68, %edx
	callq	_rtl818x_iowrite8
	movq	(%rbx), %rsi
	addq	$8, %rsi
	movl	(%r13), %edx
	movq	%rbx, %rdi
	callq	_rtl818x_iowrite8
	movq	(%rbx), %rsi
	addq	$44, %rsi
	movq	%rbx, %rdi
	movl	$8183, %edx                     ## imm = 0x1FF7
	callq	_rtl818x_iowrite16
	movl	$100, %edi
	callq	_msleep
	movq	8(%rbx), %rax
	movq	%r15, %rdi
	callq	*(%rax)
	movq	(%rbx), %rsi
	addq	$40, %rsi
	movq	%rbx, %rdi
	movl	$499, %edx                      ## imm = 0x1F3
	callq	_rtl818x_iowrite16
	movq	(%rbx), %rsi
	addq	$32, %rsi
	movq	%rbx, %rdi
	callq	_rtl818x_ioread8
	movl	%eax, %r15d
	andl	$-2, %r15d
	movq	(%rbx), %rsi
	addq	$32, %rsi
	orl	$1, %eax
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_rtl818x_iowrite8
	movl	$65534, %esi                    ## imm = 0xFFFE
	movq	%rbx, %rdi
	movl	$16, %edx
	callq	_rtl818x_iowrite16
	movq	(%rbx), %rsi
	addq	$36, %rsi
	movq	%rbx, %rdi
	movl	$128, %edx
	callq	_rtl818x_iowrite8
	movl	$65535, %esi                    ## imm = 0xFFFF
	movq	%rbx, %rdi
	movl	$96, %edx
	callq	_rtl818x_iowrite8
	movq	(%rbx), %rsi
	addq	$32, %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_rtl818x_iowrite8
LBB0_2:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RTL818X_EEPROM_CMD_CONFIG,4,2  ## @RTL818X_EEPROM_CMD_CONFIG
	.comm	_RTL818X_EEPROM_CMD_NORMAL,4,2  ## @RTL818X_EEPROM_CMD_NORMAL
	.no_dead_strip	_rtl8187_init_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8187_init_hw
_rtl8187_init_hw:                       ; @rtl8187_init_hw
	.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	x21, x0
	ldr	x19, [x0]
	mov	x0, x19
	mov	w1, #1
	bl	_rtl8187_set_anaparam
	ldr	x8, [x19]
	add	x1, x8, #68
	mov	x0, x19
	mov	w2, #0
	bl	_rtl818x_iowrite16
	mov	w0, #200
	bl	_msleep
	mov	x0, x19
	mov	w1, #65048
	mov	w2, #16
	bl	_rtl818x_iowrite8
	mov	x0, x19
	mov	w1, #65048
	mov	w2, #17
	bl	_rtl818x_iowrite8
	mov	x0, x19
	mov	w1, #65048
	mov	w2, #0
	bl	_rtl818x_iowrite8
	mov	w0, #200
	bl	_msleep
	mov	x0, x21
	bl	_rtl8187_cmd_reset
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	bl	_rtl8187_set_anaparam
	ldr	x8, [x19]
	add	x1, x8, #56
	mov	x0, x19
	mov	w2, #0
	bl	_rtl818x_iowrite16
	ldr	x1, [x19]
	mov	x0, x19
	mov	w2, #0
	bl	_rtl818x_iowrite8
	ldr	x8, [x19]
	add	x1, x8, #56
	mov	x0, x19
	mov	w2, #1024
	bl	_rtl818x_iowrite16
	ldr	x1, [x19]
	mov	x0, x19
	mov	w2, #1
	bl	_rtl818x_iowrite8
	ldr	x8, [x19]
	add	x1, x8, #4
	mov	x0, x19
	mov	w2, #0
	bl	_rtl818x_iowrite8
	ldr	x8, [x19]
	add	x1, x8, #8
Lloh0:
	adrp	x22, _RTL818X_EEPROM_CMD_CONFIG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _RTL818X_EEPROM_CMD_CONFIG@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_rtl818x_iowrite8
	mov	x0, x19
	mov	w1, #65524
	mov	w2, #65535
	bl	_rtl818x_iowrite16
	ldr	x8, [x19]
	add	x1, x8, #12
	mov	x0, x19
	bl	_rtl818x_ioread8
	mov	w2, #128
	bfxil	w2, w0, #0, #6
	ldr	x8, [x19]
	add	x1, x8, #12
	mov	x0, x19
	bl	_rtl818x_iowrite8
	ldr	x8, [x19]
	add	x1, x8, #8
Lloh2:
	adrp	x23, _RTL818X_EEPROM_CMD_NORMAL@GOTPAGE
Lloh3:
	ldr	x23, [x23, _RTL818X_EEPROM_CMD_NORMAL@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_rtl818x_iowrite8
	ldr	x8, [x19]
	add	x1, x8, #64
	mov	x0, x19
	mov	w2, #0
	bl	_rtl818x_iowrite32
	ldr	x8, [x19]
	add	x1, x8, #16
	mov	x0, x19
	mov	w2, #0
	bl	_rtl818x_iowrite8
	ldr	x8, [x19]
	add	x1, x8, #20
	mov	x0, x19
	mov	w2, #0
	bl	_rtl818x_iowrite8
	ldr	x8, [x19]
	add	x1, x8, #24
	mov	x0, x19
	mov	w2, #128
	bl	_rtl818x_iowrite8
	ldr	x8, [x19]
	add	x1, x8, #40
	mov	x0, x19
	mov	w2, #499
	bl	_rtl818x_iowrite16
	ldr	x8, [x19]
	add	x1, x8, #56
	mov	x0, x19
	mov	w2, #0
	bl	_rtl818x_iowrite16
	ldr	x1, [x19]
	mov	x0, x19
	mov	w2, #0
	bl	_rtl818x_iowrite8
	mov	x0, x19
	mov	w1, #65107
	bl	_rtl818x_ioread8
	orr	w2, w0, #0x80
	mov	x0, x19
	mov	w1, #65107
	bl	_rtl818x_iowrite8
	ldr	x8, [x19]
	add	x1, x8, #56
	mov	x0, x19
	mov	w2, #1024
	bl	_rtl818x_iowrite16
	ldr	x1, [x19]
	mov	x0, x19
	mov	w2, #32
	bl	_rtl818x_iowrite8
	ldr	x8, [x19]
	add	x1, x8, #4
	mov	x0, x19
	mov	w2, #0
	bl	_rtl818x_iowrite8
	ldr	x8, [x19]
	add	x1, x8, #60
	mov	x0, x19
	mov	w2, #128
	bl	_rtl818x_iowrite16
	ldr	x8, [x19]
	add	x1, x8, #56
	mov	x0, x19
	mov	w2, #128
	bl	_rtl818x_iowrite16
	ldr	x8, [x19]
	add	x1, x8, #44
	mov	x0, x19
	mov	w2, #128
	bl	_rtl818x_iowrite16
	mov	w0, #100
	bl	_msleep
	ldr	x8, [x19]
	add	x1, x8, #52
	mov	x0, x19
	mov	w2, #32776
	movk	w2, #10, lsl #16
	bl	_rtl818x_iowrite32
	ldr	x8, [x19]
	add	x1, x8, #40
	mov	x0, x19
	mov	w2, #65535
	bl	_rtl818x_iowrite16
	ldr	x8, [x19]
	add	x1, x8, #48
	mov	x0, x19
	mov	w2, #68
	movk	w2, #16, lsl #16
	bl	_rtl818x_iowrite32
	ldr	x8, [x19]
	add	x1, x8, #8
	ldr	w2, [x22]
	mov	x0, x19
	bl	_rtl818x_iowrite8
	ldr	x8, [x19]
	add	x1, x8, #28
	mov	x0, x19
	mov	w2, #68
	bl	_rtl818x_iowrite8
	ldr	x8, [x19]
	add	x1, x8, #8
	ldr	w2, [x23]
	mov	x0, x19
	bl	_rtl818x_iowrite8
	ldr	x8, [x19]
	add	x1, x8, #44
	mov	x0, x19
	mov	w2, #8183
	bl	_rtl818x_iowrite16
	mov	w0, #100
	bl	_msleep
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	x0, x21
	blr	x8
	ldr	x8, [x19]
	add	x1, x8, #40
	mov	x0, x19
	mov	w2, #499
	bl	_rtl818x_iowrite16
	ldr	x8, [x19]
	add	x1, x8, #32
	mov	x0, x19
	bl	_rtl818x_ioread8
	and	w21, w0, #0xfffffffe
	ldr	x8, [x19]
	add	x1, x8, #32
	orr	w2, w0, #0x1
	mov	x0, x19
	bl	_rtl818x_iowrite8
	mov	x0, x19
	mov	w1, #65534
	mov	w2, #16
	bl	_rtl818x_iowrite16
	ldr	x8, [x19]
	add	x1, x8, #36
	mov	x0, x19
	mov	w2, #128
	bl	_rtl818x_iowrite8
	mov	x0, x19
	mov	w1, #65535
	mov	w2, #96
	bl	_rtl818x_iowrite8
	ldr	x8, [x19]
	add	x1, x8, #32
	mov	x0, x19
	mov	x2, x21
	bl	_rtl818x_iowrite8
LBB0_2:
	mov	x0, x20
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_RTL818X_EEPROM_CMD_CONFIG,4,2  ; @RTL818X_EEPROM_CMD_CONFIG
	.comm	_RTL818X_EEPROM_CMD_NORMAL,4,2  ; @RTL818X_EEPROM_CMD_NORMAL
	.no_dead_strip	_rtl8187_init_hw
.subsections_via_symbols
