	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8367b_init_regs
_rtl8367b_init_regs:                    ## @rtl8367b_init_regs
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_RTL8367B_RTL_MAGIC_ID_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RTL8367B_RTL_MAGIC_ID_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_REG_WR
	movq	_RTL8367B_CHIP_VER_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	movq	%r14, %rdi
	callq	_REG_RD
	movl	-20(%rbp), %edx
	movq	_RTL8367B_CHIP_VER_RLVID_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %edx
	movq	_RTL8367B_CHIP_VER_RLVID_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	je	LBB0_1
## %bb.2:
	cmpl	$1, %edx
	jne	LBB0_6
## %bb.3:
	movq	_rtl8367r_vb_initvals_1@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	movq	_rtl8367r_vb_initvals_0@GOTPCREL(%rip), %rax
LBB0_4:
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_rtl8367b_write_initvals
	jmp	LBB0_5
LBB0_6:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RTL8367B_RTL_MAGIC_ID_REG,4,2  ## @RTL8367B_RTL_MAGIC_ID_REG
	.comm	_RTL8367B_RTL_MAGIC_ID_VAL,4,2  ## @RTL8367B_RTL_MAGIC_ID_VAL
	.comm	_RTL8367B_CHIP_VER_REG,4,2      ## @RTL8367B_CHIP_VER_REG
	.comm	_RTL8367B_CHIP_VER_RLVID_SHIFT,4,2 ## @RTL8367B_CHIP_VER_RLVID_SHIFT
	.comm	_RTL8367B_CHIP_VER_RLVID_MASK,4,2 ## @RTL8367B_CHIP_VER_RLVID_MASK
	.comm	_rtl8367r_vb_initvals_0,8,3     ## @rtl8367r_vb_initvals_0
	.comm	_rtl8367r_vb_initvals_1,8,3     ## @rtl8367r_vb_initvals_1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknow rlvid %u\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_rtl8367b_init_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8367b_init_regs
_rtl8367b_init_regs:                    ; @rtl8367b_init_regs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _RTL8367B_RTL_MAGIC_ID_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RTL8367B_RTL_MAGIC_ID_REG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _RTL8367B_RTL_MAGIC_ID_VAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RTL8367B_RTL_MAGIC_ID_VAL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_REG_WR
Lloh6:
	adrp	x8, _RTL8367B_CHIP_VER_REG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RTL8367B_CHIP_VER_REG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_REG_RD
	ldr	w8, [sp, #12]
Lloh9:
	adrp	x9, _RTL8367B_CHIP_VER_RLVID_SHIFT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RTL8367B_CHIP_VER_RLVID_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	asr	w8, w8, w9
Lloh12:
	adrp	x9, _RTL8367B_CHIP_VER_RLVID_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _RTL8367B_CHIP_VER_RLVID_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	ands	w2, w8, w9
	b.eq	LBB0_3
; %bb.1:
	cmp	w2, #1
	b.ne	LBB0_5
; %bb.2:
Lloh15:
	adrp	x8, _rtl8367r_vb_initvals_1@GOTPAGE
Lloh16:
	ldr	x8, [x8, _rtl8367r_vb_initvals_1@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh17:
	adrp	x8, _rtl8367r_vb_initvals_0@GOTPAGE
Lloh18:
	ldr	x8, [x8, _rtl8367r_vb_initvals_0@GOTPAGEOFF]
LBB0_4:
	ldr	x20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_rtl8367b_write_initvals
	b	LBB0_6
LBB0_5:
	ldr	w0, [x19]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh21:
	adrp	x8, _ENODEV@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.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 AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_RTL8367B_RTL_MAGIC_ID_REG,4,2  ; @RTL8367B_RTL_MAGIC_ID_REG
	.comm	_RTL8367B_RTL_MAGIC_ID_VAL,4,2  ; @RTL8367B_RTL_MAGIC_ID_VAL
	.comm	_RTL8367B_CHIP_VER_REG,4,2      ; @RTL8367B_CHIP_VER_REG
	.comm	_RTL8367B_CHIP_VER_RLVID_SHIFT,4,2 ; @RTL8367B_CHIP_VER_RLVID_SHIFT
	.comm	_RTL8367B_CHIP_VER_RLVID_MASK,4,2 ; @RTL8367B_CHIP_VER_RLVID_MASK
	.comm	_rtl8367r_vb_initvals_0,8,3     ; @rtl8367r_vb_initvals_0
	.comm	_rtl8367r_vb_initvals_1,8,3     ; @rtl8367r_vb_initvals_1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknow rlvid %u\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_rtl8367b_init_regs
.subsections_via_symbols
