	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8723_enable_fw_download     ## -- Begin function rtl8723_enable_fw_download
	.p2align	4, 0x90
_rtl8723_enable_fw_download:            ## @rtl8723_enable_fw_download
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	callq	_rtl_priv
	movq	%rax, %r14
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	movq	_REG_SYS_FUNC_EN@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	incq	%rsi
	movq	%r14, %rdi
	callq	_rtl_read_byte
	movq	(%rbx), %rsi
	incq	%rsi
	orl	$4, %eax
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_rtl_write_byte
	movq	_REG_MCUFWDL@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_rtl_read_byte
	movq	(%rbx), %rsi
	orl	$1, %eax
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_rtl_write_byte
	movq	(%rbx), %rsi
	addq	$2, %rsi
	movq	%r14, %rdi
	callq	_rtl_read_byte
	movq	(%rbx), %rsi
	addq	$2, %rsi
	andl	$247, %eax
	movq	%r14, %rdi
	movl	%eax, %edx
	jmp	LBB0_3
LBB0_2:
	movq	_REG_MCUFWDL@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_rtl_read_byte
	movq	(%rbx), %rsi
	andl	$254, %eax
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_rtl_write_byte
	movq	(%rbx), %rsi
	incq	%rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_rtl_write_byte                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_SYS_FUNC_EN,8,3            ## @REG_SYS_FUNC_EN
	.comm	_REG_MCUFWDL,8,3                ## @REG_MCUFWDL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8723_enable_fw_download     ; -- Begin function rtl8723_enable_fw_download
	.p2align	2
_rtl8723_enable_fw_download:            ; @rtl8723_enable_fw_download
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	bl	_rtl_priv
	mov	x19, x0
	cbz	w20, LBB0_2
; %bb.1:
Lloh0:
	adrp	x20, _REG_SYS_FUNC_EN@GOTPAGE
Lloh1:
	ldr	x20, [x20, _REG_SYS_FUNC_EN@GOTPAGEOFF]
	ldr	x8, [x20]
	add	x1, x8, #1
	mov	x0, x19
	bl	_rtl_read_byte
	ldr	x8, [x20]
	add	x1, x8, #1
	orr	w2, w0, #0x4
	mov	x0, x19
	bl	_rtl_write_byte
Lloh2:
	adrp	x20, _REG_MCUFWDL@GOTPAGE
Lloh3:
	ldr	x20, [x20, _REG_MCUFWDL@GOTPAGEOFF]
	ldr	x1, [x20]
	mov	x0, x19
	bl	_rtl_read_byte
	ldr	x1, [x20]
	orr	w2, w0, #0x1
	mov	x0, x19
	bl	_rtl_write_byte
	ldr	x8, [x20]
	add	x1, x8, #2
	mov	x0, x19
	bl	_rtl_read_byte
	ldr	x8, [x20]
	add	x1, x8, #2
	mov	w8, #247
	and	w2, w0, w8
	mov	x0, x19
	b	LBB0_3
LBB0_2:
Lloh4:
	adrp	x20, _REG_MCUFWDL@GOTPAGE
Lloh5:
	ldr	x20, [x20, _REG_MCUFWDL@GOTPAGEOFF]
	ldr	x1, [x20]
	mov	x0, x19
	bl	_rtl_read_byte
	ldr	x1, [x20]
	and	w2, w0, #0xfe
	mov	x0, x19
	bl	_rtl_write_byte
	ldr	x8, [x20]
	add	x1, x8, #1
	mov	x0, x19
	mov	w2, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rtl_write_byte
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_SYS_FUNC_EN,8,3            ; @REG_SYS_FUNC_EN
	.comm	_REG_MCUFWDL,8,3                ; @REG_MCUFWDL
.subsections_via_symbols
