	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8xxxu_gen1_usb_quirks       ## -- Begin function rtl8xxxu_gen1_usb_quirks
	.p2align	4, 0x90
_rtl8xxxu_gen1_usb_quirks:              ## @rtl8xxxu_gen1_usb_quirks
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	$65088, %esi                    ## imm = 0xFE40
	movl	$224, %edx
	callq	_rtl8xxxu_write8
	movq	%rbx, %rdi
	movl	$65089, %esi                    ## imm = 0xFE41
	movl	$141, %edx
	callq	_rtl8xxxu_write8
	movq	%rbx, %rdi
	movl	$65090, %esi                    ## imm = 0xFE42
	movl	$128, %edx
	callq	_rtl8xxxu_write8
	movq	_REG_TXDMA_OFFSET_CHK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$16581408, %edx                 ## imm = 0xFD0320
	callq	_rtl8xxxu_write32
	cmpl	$0, 8(%rbx)
	je	LBB0_1
LBB0_3:
	movq	%rbx, %rdi
	movl	$65088, %esi                    ## imm = 0xFE40
	movl	$230, %edx
	callq	_rtl8xxxu_write8
	movq	%rbx, %rdi
	movl	$65089, %esi                    ## imm = 0xFE41
	movl	$148, %edx
	callq	_rtl8xxxu_write8
	movq	%rbx, %rdi
	movl	$65090, %esi                    ## imm = 0xFE42
	movl	$128, %edx
	callq	_rtl8xxxu_write8
	movq	%rbx, %rdi
	movl	$65088, %esi                    ## imm = 0xFE40
	movl	$224, %edx
	callq	_rtl8xxxu_write8
	movq	%rbx, %rdi
	movl	$65089, %esi                    ## imm = 0xFE41
	movl	$25, %edx
	callq	_rtl8xxxu_write8
	movq	%rbx, %rdi
	movl	$65090, %esi                    ## imm = 0xFE42
	movl	$128, %edx
	callq	_rtl8xxxu_write8
	movq	%rbx, %rdi
	movl	$65088, %esi                    ## imm = 0xFE40
	movl	$229, %edx
	callq	_rtl8xxxu_write8
	movq	%rbx, %rdi
	movl	$65089, %esi                    ## imm = 0xFE41
	movl	$145, %edx
	callq	_rtl8xxxu_write8
	movq	%rbx, %rdi
	movl	$65090, %esi                    ## imm = 0xFE42
	movl	$128, %edx
	callq	_rtl8xxxu_write8
	movq	%rbx, %rdi
	movl	$65088, %esi                    ## imm = 0xFE40
	movl	$226, %edx
	callq	_rtl8xxxu_write8
	movq	%rbx, %rdi
	movl	$65089, %esi                    ## imm = 0xFE41
	movl	$129, %edx
	callq	_rtl8xxxu_write8
	movq	%rbx, %rdi
	movl	$65090, %esi                    ## imm = 0xFE42
	movl	$128, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_rtl8xxxu_write8                ## TAILCALL
LBB0_1:
	cmpq	$0, (%rbx)
	je	LBB0_3
## %bb.2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_TXDMA_OFFSET_CHK,4,2       ## @REG_TXDMA_OFFSET_CHK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8xxxu_gen1_usb_quirks       ; -- Begin function rtl8xxxu_gen1_usb_quirks
	.p2align	2
_rtl8xxxu_gen1_usb_quirks:              ; @rtl8xxxu_gen1_usb_quirks
	.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
	mov	w1, #65088
	mov	w2, #224
	bl	_rtl8xxxu_write8
	mov	x0, x19
	mov	w1, #65089
	mov	w2, #141
	bl	_rtl8xxxu_write8
	mov	x0, x19
	mov	w1, #65090
	mov	w2, #128
	bl	_rtl8xxxu_write8
Lloh0:
	adrp	x8, _REG_TXDMA_OFFSET_CHK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_TXDMA_OFFSET_CHK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #800
	movk	w2, #253, lsl #16
	bl	_rtl8xxxu_write32
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_2
LBB0_1:
	mov	x0, x19
	mov	w1, #65088
	mov	w2, #230
	bl	_rtl8xxxu_write8
	mov	x0, x19
	mov	w1, #65089
	mov	w2, #148
	bl	_rtl8xxxu_write8
	mov	x0, x19
	mov	w1, #65090
	mov	w2, #128
	bl	_rtl8xxxu_write8
	mov	x0, x19
	mov	w1, #65088
	mov	w2, #224
	bl	_rtl8xxxu_write8
	mov	x0, x19
	mov	w1, #65089
	mov	w2, #25
	bl	_rtl8xxxu_write8
	mov	x0, x19
	mov	w1, #65090
	mov	w2, #128
	bl	_rtl8xxxu_write8
	mov	x0, x19
	mov	w1, #65088
	mov	w2, #229
	bl	_rtl8xxxu_write8
	mov	x0, x19
	mov	w1, #65089
	mov	w2, #145
	bl	_rtl8xxxu_write8
	mov	x0, x19
	mov	w1, #65090
	mov	w2, #128
	bl	_rtl8xxxu_write8
	mov	x0, x19
	mov	w1, #65088
	mov	w2, #226
	bl	_rtl8xxxu_write8
	mov	x0, x19
	mov	w1, #65089
	mov	w2, #129
	bl	_rtl8xxxu_write8
	mov	x0, x19
	mov	w1, #65090
	mov	w2, #128
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rtl8xxxu_write8
LBB0_2:
	ldr	x8, [x19]
	cbz	x8, LBB0_1
; %bb.3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_TXDMA_OFFSET_CHK,4,2       ; @REG_TXDMA_OFFSET_CHK
.subsections_via_symbols
