	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl92c_firmware_selfreset      ## -- Begin function rtl92c_firmware_selfreset
	.p2align	4, 0x90
_rtl92c_firmware_selfreset:             ## @rtl92c_firmware_selfreset
	.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
	callq	_rtl_priv
	movq	%rax, %r15
	movq	_REG_HMETFR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	$3, %rsi
	movq	%r15, %rdi
	movl	$32, %edx
	callq	_rtl_write_byte
	movq	_REG_SYS_FUNC_EN@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	incq	%rsi
	movq	%r15, %rdi
	callq	_rtl_read_byte
	movl	%eax, %r14d
	movl	$2, %edi
	callq	_BIT
	testl	%r14d, %eax
	je	LBB0_4
## %bb.1:
	movl	$-100, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$50, %edi
	callq	_udelay
	movq	(%r12), %rsi
	incq	%rsi
	movq	%r15, %rdi
	callq	_rtl_read_byte
	movl	%eax, %r14d
	movl	$2, %edi
	callq	_BIT
	testl	%r14d, %eax
	jne	LBB0_2
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WARN_ONCE                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_HMETFR,8,3                 ## @REG_HMETFR
	.comm	_REG_SYS_FUNC_EN,8,3            ## @REG_SYS_FUNC_EN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rtl8192c-common: 8051 reset fail.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl92c_firmware_selfreset      ; -- Begin function rtl92c_firmware_selfreset
	.p2align	2
_rtl92c_firmware_selfreset:             ; @rtl92c_firmware_selfreset
	.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
	bl	_rtl_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _REG_HMETFR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_HMETFR@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x1, x8, #3
	mov	w2, #32
	bl	_rtl_write_byte
Lloh3:
	adrp	x21, _REG_SYS_FUNC_EN@GOTPAGE
Lloh4:
	ldr	x21, [x21, _REG_SYS_FUNC_EN@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x1, x8, #1
	mov	x0, x19
	bl	_rtl_read_byte
	mov	x20, x0
	mov	w0, #2
	bl	_BIT
	tst	w0, w20
	b.eq	LBB0_4
; %bb.1:
	mov	w22, #-100
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	adds	w22, w22, #1
	b.hs	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #50
	bl	_udelay
	ldr	x8, [x21]
	add	x1, x8, #1
	mov	x0, x19
	bl	_rtl_read_byte
	mov	x20, x0
	mov	w0, #2
	bl	_BIT
	tst	w0, w20
	b.ne	LBB0_2
LBB0_4:
	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_5:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	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
	b	_WARN_ONCE
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_HMETFR,8,3                 ; @REG_HMETFR
	.comm	_REG_SYS_FUNC_EN,8,3            ; @REG_SYS_FUNC_EN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rtl8192c-common: 8051 reset fail.\n"

.subsections_via_symbols
