	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl28xxu_init
_rtl28xxu_init:                         ## @rtl28xxu_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_USB_SYSCTL_0@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	callq	_rtl28xxu_rd_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movl	-28(%rbp), %edx
	orl	$9, %edx
	movl	%edx, -28(%rbp)
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_rtl28xxu_wr_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movq	_USB_EPA_MAXPKT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	l_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	$4, %ecx
	callq	_rtl28xxu_wr_regs
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	_USB_EPA_FIFO_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	l_.str.2(%rip), %rdx
	movq	%r14, %rdi
	movl	$4, %ecx
	callq	_rtl28xxu_wr_regs
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_4
LBB0_5:
	movq	(%r14), %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_USB_SYSCTL_0,4,2               ## @USB_SYSCTL_0
	.comm	_USB_EPA_MAXPKT,4,2             ## @USB_EPA_MAXPKT
	.section	__TEXT,__const
l_.str.1:                               ## @.str.1
	.asciz	"\000\002\000\000"

	.comm	_USB_EPA_FIFO_CFG,4,2           ## @USB_EPA_FIFO_CFG
l_.str.2:                               ## @.str.2
	.asciz	"\024\000\000\000"

	.section	__TEXT,__cstring,cstring_literals
L_.str.3:                               ## @.str.3
	.asciz	"failed=%d\n"

	.no_dead_strip	_rtl28xxu_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl28xxu_init
_rtl28xxu_init:                         ; @rtl28xxu_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh2:
	adrp	x21, _USB_SYSCTL_0@GOTPAGE
Lloh3:
	ldr	x21, [x21, _USB_SYSCTL_0@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x19
	bl	_rtl28xxu_rd_reg
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	w8, [sp, #12]
	mov	w9, #9
	orr	w2, w8, w9
	str	w2, [sp, #12]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_rtl28xxu_wr_reg
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.2:
Lloh4:
	adrp	x8, _USB_EPA_MAXPKT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _USB_EPA_MAXPKT@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w3, #4
	bl	_rtl28xxu_wr_regs
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _USB_EPA_FIFO_CFG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _USB_EPA_FIFO_CFG@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str.2@PAGE
Lloh13:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w3, #4
	bl	_rtl28xxu_wr_regs
	mov	x20, x0
	cbz	w0, LBB0_5
LBB0_4:
	ldr	x0, [x19]
	str	x20, [sp]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_dbg
LBB0_5:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_USB_SYSCTL_0,4,2               ; @USB_SYSCTL_0
	.comm	_USB_EPA_MAXPKT,4,2             ; @USB_EPA_MAXPKT
	.section	__TEXT,__const
l_.str.1:                               ; @.str.1
	.asciz	"\000\002\000\000"

	.comm	_USB_EPA_FIFO_CFG,4,2           ; @USB_EPA_FIFO_CFG
l_.str.2:                               ; @.str.2
	.asciz	"\024\000\000\000"

	.section	__TEXT,__cstring,cstring_literals
l_.str.3:                               ; @.str.3
	.asciz	"failed=%d\n"

	.no_dead_strip	_rtl28xxu_init
.subsections_via_symbols
