	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8xxxu_init_rf_regs
_rtl8xxxu_init_rf_regs:                 ## @rtl8xxxu_init_rf_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	%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
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	(%rsi), %edx
	movl	4(%rsi), %ecx
	xorl	%r14d, %r14d
	cmpl	$255, %edx
	jne	LBB0_2
## %bb.1:
	cmpl	$-1, %ecx
	je	LBB0_16
LBB0_2:
	addq	$12, %rbx
	leaq	LJTI0_0(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leal	-249(%rdx), %eax
	cmpl	$5, %eax
	ja	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	(%r13,%rax,4), %rax
	addq	%r13, %rax
	jmpq	*%rax
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$5, %edi
	jmp	LBB0_13
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movl	%r15d, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_rtl8xxxu_write_rfreg
	testl	%eax, %eax
	jne	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %edi
	jmp	LBB0_13
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$50, %edi
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	callq	_udelay
	jmp	LBB0_14
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %edi
	callq	_mdelay
	jmp	LBB0_14
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$5, %edi
	callq	_mdelay
	jmp	LBB0_14
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$50, %edi
	callq	_msleep
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-4(%rbx), %edx
	movl	(%rbx), %ecx
	addq	$8, %rbx
	cmpl	$255, %edx
	jne	LBB0_3
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$-1, %ecx
	jne	LBB0_3
LBB0_16:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_16
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_9
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_6
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to initialize RF\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_rtl8xxxu_init_rf_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8xxxu_init_rf_regs
_rtl8xxxu_init_rf_regs:                 ; @rtl8xxxu_init_rf_regs
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	ldp	w2, w3, [x1]
	cmp	w2, #255
	ccmn	w3, #1, #0, eq
	b.eq	LBB0_13
; %bb.1:
	mov	x20, x0
	add	x21, x1, #12
Lloh0:
	adrp	x22, lJTI0_0@PAGE
Lloh1:
	add	x22, x22, lJTI0_0@PAGEOFF
	b	LBB0_6
LBB0_2:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_rtl8xxxu_write_rfreg
	cbnz	w0, LBB0_15
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #1
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	bl	_udelay
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldp	w2, w3, [x21, #-4]
	add	x21, x21, #8
	cmp	w2, #255
	ccmn	w3, #1, #0, eq
	b.eq	LBB0_13
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w2, #249
	cmp	w8, #5
	b.hi	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	adr	x9, LBB0_3
	ldrb	w10, [x22, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #5
	b	LBB0_4
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #50
	b	LBB0_4
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #1
	bl	_mdelay
	b	LBB0_5
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #5
	bl	_mdelay
	b	LBB0_5
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #50
	bl	_msleep
	b	LBB0_5
LBB0_13:
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_15:
	ldr	x0, [x20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
Lloh4:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_12-LBB0_3)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to initialize RF\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_rtl8xxxu_init_rf_regs
.subsections_via_symbols
