	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8xxxu_init_mac
_rtl8xxxu_init_mac:                     ## @rtl8xxxu_init_mac
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %rax
	movq	(%rax), %rbx
	movl	(%rbx), %r12d
	movl	4(%rbx), %r15d
	cmpl	$65535, %r12d                   ## imm = 0xFFFF
	jne	LBB0_2
## %bb.1:
	cmpl	$255, %r15d
	je	LBB0_7
LBB0_2:
	addq	$12, %rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	_rtl8xxxu_write8
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-4(%rbx), %r12d
	movl	(%rbx), %r15d
	addq	$8, %rbx
	cmpl	$65535, %r12d                   ## imm = 0xFFFF
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$255, %r15d
	jne	LBB0_5
LBB0_7:
	movq	(%r14), %rax
	movq	_RTL8723B@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.8:
	movq	_RTL8192E@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.9:
	movq	_REG_MAX_AGGR_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$10, %edx
	callq	_rtl8xxxu_write8
	jmp	LBB0_10
LBB0_6:
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	callq	_dev_warn
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to initialize MAC (reg: %04x, val %02x)\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_RTL8723B,8,3                   ## @RTL8723B
	.comm	_RTL8192E,8,3                   ## @RTL8192E
	.comm	_REG_MAX_AGGR_NUM,4,2           ## @REG_MAX_AGGR_NUM
	.no_dead_strip	_rtl8xxxu_init_mac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8xxxu_init_mac
_rtl8xxxu_init_mac:                     ; @rtl8xxxu_init_mac
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	ldp	w20, w21, [x8]
	mov	w22, #65535
	cmp	w20, w22
	b.ne	LBB0_2
; %bb.1:
	cmp	w21, #255
	b.eq	LBB0_6
LBB0_2:
	add	x23, x8, #12
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_rtl8xxxu_write8
	cmp	w0, #1
	b.ne	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	w20, w21, [x23, #-4]
	add	x23, x23, #8
	cmp	w20, w22
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w21, #255
	b.ne	LBB0_3
LBB0_6:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _RTL8723B@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RTL8723B@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _RTL8192E@GOTPAGE
Lloh4:
	ldr	x10, [x10, _RTL8192E@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_8
; %bb.7:
Lloh6:
	adrp	x8, _REG_MAX_AGGR_NUM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REG_MAX_AGGR_NUM@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #10
	bl	_rtl8xxxu_write8
LBB0_8:
	mov	w0, #0
	b	LBB0_10
LBB0_9:
	ldr	x0, [x19, #8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x21
	bl	_dev_warn
Lloh11:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to initialize MAC (reg: %04x, val %02x)\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_RTL8723B,8,3                   ; @RTL8723B
	.comm	_RTL8192E,8,3                   ; @RTL8192E
	.comm	_REG_MAX_AGGR_NUM,4,2           ; @REG_MAX_AGGR_NUM
	.no_dead_strip	_rtl8xxxu_init_mac
.subsections_via_symbols
