	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8306_fixup
_rtl8306_fixup:                         ## @rtl8306_fixup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	testl	$-5, 4(%rdi)
	jne	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	leaq	-24(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movabsq	$-4294967295, %rax              ## imm = 0xFFFFFFFF00000001
	movq	%rax, -24(%rbp)
	movl	8(%rbx), %eax
	movl	%eax, -12(%rbp)
	leaq	-16(%rbp), %rdi
	movq	_RTL_REG_CHIPID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_rtl_get
	cmpl	$22920, %eax                    ## imm = 0x5988
	jne	LBB0_3
## %bb.2:
	movq	_RTL8306_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_3:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RTL_REG_CHIPID,4,2             ## @RTL_REG_CHIPID
	.comm	_RTL8306_MAGIC,4,2              ## @RTL8306_MAGIC
	.no_dead_strip	_rtl8306_fixup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function rtl8306_fixup
lCPI0_0:
	.long	1                               ; 0x1
	.long	4294967295                      ; 0xffffffff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_rtl8306_fixup:                         ; @rtl8306_fixup
	.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
	ldr	w8, [x0, #4]
	orr	w8, w8, #0x4
	cmp	w8, #4
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x20, sp
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp]
	ldr	w8, [x19, #8]
	str	w8, [sp, #12]
	add	x0, x20, #8
Lloh2:
	adrp	x8, _RTL_REG_CHIPID@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RTL_REG_CHIPID@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_rtl_get
	mov	w8, #22920
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _RTL8306_MAGIC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RTL8306_MAGIC@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_3:
	mov	w0, #0
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_RTL_REG_CHIPID,4,2             ; @RTL_REG_CHIPID
	.comm	_RTL8306_MAGIC,4,2              ; @RTL8306_MAGIC
	.no_dead_strip	_rtl8306_fixup
.subsections_via_symbols
