	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl92cu_init_mac
__rtl92cu_init_mac:                     ## @_rtl92cu_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_rtl_priv
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_hal
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_rtl_usbpriv
	movq	%rax, %rdi
	callq	_rtl_usbdev
	movl	(%rax), %r12d
	movl	4(%rax), %r13d
	movq	%rbx, %rdi
	callq	__rtl92cu_init_power_on
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_5
LBB0_2:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	_TX_PAGE_BOUNDARY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rtl92c_init_llt_table
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edx
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %ecx
	callq	__rtl92cu_init_queue_reserved_page
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	__rtl92c_init_trx_buffer
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r13d, %edx
	movl	%r15d, %ecx
	callq	__rtl92cu_init_queue_priority
	movq	_RTL92C_DRIVER_INFO_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rtl92c_init_driver_info_size
	movq	%rbx, %rdi
	callq	_rtl92c_init_interrupt
	movq	%rbx, %rdi
	callq	_rtl92c_init_network_type
	movq	%rbx, %rdi
	callq	__rtl92cu_init_wmac_setting
	movq	%rbx, %rdi
	callq	_rtl92c_init_adaptive_ctrl
	movq	%rbx, %rdi
	callq	_rtl92c_init_edca
	movq	%rbx, %rdi
	callq	_rtl92c_init_rate_fallback
	movq	%rbx, %rdi
	callq	_rtl92c_init_retry_function
	movq	(%r12), %rax
	movq	(%rax), %rax
	movq	_NL80211_CHAN_HT20@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	callq	*(%rax)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_IS_92C_SERIAL
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_rtl92c_set_min_space
	movq	%rbx, %rdi
	callq	__rtl92cu_init_beacon_parameters
	movq	%rbx, %rdi
	callq	_rtl92c_init_ampdu_aggregation
	movq	%rbx, %rdi
	callq	_rtl92c_init_beacon_max_error
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to init power on!\n"

	.comm	_TX_PAGE_BOUNDARY,4,2           ## @TX_PAGE_BOUNDARY
	.comm	_WMM_CHIP_B_TX_PAGE_BOUNDARY,4,2 ## @WMM_CHIP_B_TX_PAGE_BOUNDARY
	.comm	_WMM_CHIP_A_TX_PAGE_BOUNDARY,4,2 ## @WMM_CHIP_A_TX_PAGE_BOUNDARY
L_.str.1:                               ## @.str.1
	.asciz	"Failed to init LLT Table!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RTL92C_DRIVER_INFO_SIZE,4,2    ## @RTL92C_DRIVER_INFO_SIZE
	.comm	_NL80211_CHAN_HT20,4,2          ## @NL80211_CHAN_HT20
	.no_dead_strip	__rtl92cu_init_mac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl92cu_init_mac
__rtl92cu_init_mac:                     ; @_rtl92cu_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
	bl	_rtl_priv
	mov	x20, x0
	mov	x0, x19
	bl	_rtl_priv
	bl	_rtl_hal
	mov	x21, x0
	mov	x0, x19
	bl	_rtl_usbpriv
	bl	_rtl_usbdev
	ldp	w22, w23, [x0]
	mov	x0, x19
	bl	__rtl92cu_init_power_on
	cbz	w0, LBB0_2
; %bb.1:
	mov	x24, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_5
LBB0_2:
Lloh2:
	adrp	x8, _TX_PAGE_BOUNDARY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TX_PAGE_BOUNDARY@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rtl92c_init_llt_table
	cbz	w0, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #0
	mov	x2, x22
	mov	x3, x23
	bl	__rtl92cu_init_queue_reserved_page
	mov	x0, x19
	mov	w1, #0
	bl	__rtl92c_init_trx_buffer
	mov	x0, x19
	mov	w1, #0
	mov	x2, x22
	mov	x3, x23
	bl	__rtl92cu_init_queue_priority
Lloh5:
	adrp	x8, _RTL92C_DRIVER_INFO_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RTL92C_DRIVER_INFO_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rtl92c_init_driver_info_size
	mov	x0, x19
	bl	_rtl92c_init_interrupt
	mov	x0, x19
	bl	_rtl92c_init_network_type
	mov	x0, x19
	bl	__rtl92cu_init_wmac_setting
	mov	x0, x19
	bl	_rtl92c_init_adaptive_ctrl
	mov	x0, x19
	bl	_rtl92c_init_edca
	mov	x0, x19
	bl	_rtl92c_init_rate_fallback
	mov	x0, x19
	bl	_rtl92c_init_retry_function
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _NL80211_CHAN_HT20@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NL80211_CHAN_HT20@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x9]
	mov	x0, x19
	blr	x8
	ldr	w0, [x21]
	bl	_IS_92C_SERIAL
	mov	x1, x0
	mov	x0, x19
	bl	_rtl92c_set_min_space
	mov	x0, x19
	bl	__rtl92cu_init_beacon_parameters
	mov	x0, x19
	bl	_rtl92c_init_ampdu_aggregation
	mov	x0, x19
	bl	_rtl92c_init_beacon_max_error
	mov	w24, #0
	b	LBB0_5
LBB0_4:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_5:
	mov	x0, x24
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to init power on!\n"

	.comm	_TX_PAGE_BOUNDARY,4,2           ; @TX_PAGE_BOUNDARY
	.comm	_WMM_CHIP_B_TX_PAGE_BOUNDARY,4,2 ; @WMM_CHIP_B_TX_PAGE_BOUNDARY
	.comm	_WMM_CHIP_A_TX_PAGE_BOUNDARY,4,2 ; @WMM_CHIP_A_TX_PAGE_BOUNDARY
l_.str.1:                               ; @.str.1
	.asciz	"Failed to init LLT Table!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RTL92C_DRIVER_INFO_SIZE,4,2    ; @RTL92C_DRIVER_INFO_SIZE
	.comm	_NL80211_CHAN_HT20,4,2          ; @NL80211_CHAN_HT20
	.no_dead_strip	__rtl92cu_init_mac
.subsections_via_symbols
