	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl92c_write_fw
__rtl92c_write_fw:                      ## @_rtl92c_write_fw
	.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
	movl	%ecx, %ebx
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %r12
	movl	%ecx, -44(%rbp)
	callq	_rtl_priv
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_hal
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_COMP_FW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r13, %rdi
	movl	%ebx, %r8d
	callq	_RT_TRACE
	movl	%r15d, %edi
	callq	_IS_NORMAL_CHIP
	testl	%eax, %eax
	je	LBB0_11
## %bb.1:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_HARDWARE_TYPE_RTL8192CE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdi
	callq	_rtl_fill_dummy
	movl	-44(%rbp), %ebx
LBB0_3:
	movq	_FW_8192C_PAGE_SIZE@GOTPCREL(%rip), %r15
	movl	%ebx, %eax
	cltd
	idivl	(%r15)
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movl	%eax, %r13d
	cmpl	$5, %eax
	jl	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_6
LBB0_11:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtl_fw_block_write             ## TAILCALL
LBB0_5:
	testl	%r13d, %r13d
	jle	LBB0_8
LBB0_6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %ecx
	movl	%ecx, %eax
	imull	%ebx, %eax
	cltq
	leaq	(%r14,%rax,4), %rdx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_rtl_fw_page_write
	incl	%ebx
	cmpl	%ebx, %r13d
	jne	LBB0_7
LBB0_8:
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, %ecx
	je	LBB0_10
## %bb.9:
	movslq	(%r15), %rax
	movslq	%r13d, %rdx
	imulq	%rax, %rdx
	leaq	(%r14,%rdx,4), %rdx
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_rtl_fw_page_write
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COMP_FW,4,2                    ## @COMP_FW
	.comm	_DBG_TRACE,4,2                  ## @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FW size is %d bytes,\n"

	.comm	_HARDWARE_TYPE_RTL8192CE,8,3    ## @HARDWARE_TYPE_RTL8192CE
	.comm	_FW_8192C_PAGE_SIZE,4,2         ## @FW_8192C_PAGE_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"Page numbers should not greater then 4\n"

	.no_dead_strip	__rtl92c_write_fw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl92c_write_fw
__rtl92c_write_fw:                      ; @_rtl92c_write_fw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x3
	mov	x19, x2
	mov	x23, x1
	mov	x20, x0
	str	w3, [sp, #12]
	bl	_rtl_priv
	mov	x24, x0
	mov	x0, x20
	bl	_rtl_priv
	bl	_rtl_hal
	mov	x22, x0
Lloh0:
	adrp	x8, _COMP_FW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COMP_FW@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _DBG_TRACE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DBG_TRACE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x24
	mov	x4, x21
	bl	_RT_TRACE
	mov	x0, x23
	bl	_IS_NORMAL_CHIP
	cbz	w0, LBB0_5
; %bb.1:
	ldr	x8, [x22]
Lloh8:
	adrp	x9, _HARDWARE_TYPE_RTL8192CE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HARDWARE_TYPE_RTL8192CE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	add	x1, sp, #12
	mov	x0, x19
	bl	_rtl_fill_dummy
	ldr	w21, [sp, #12]
LBB0_3:
Lloh11:
	adrp	x24, _FW_8192C_PAGE_SIZE@GOTPAGE
Lloh12:
	ldr	x24, [x24, _FW_8192C_PAGE_SIZE@GOTPAGEOFF]
	ldr	w8, [x24]
	sdiv	w22, w21, w8
	msub	w21, w22, w8, w21
	cmp	w22, #5
	b.lt	LBB0_6
; %bb.4:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	b	LBB0_7
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_rtl_fw_block_write
LBB0_6:
	cmp	w22, #1
	b.lt	LBB0_9
LBB0_7:
	mov	w23, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w3, [x24]
	mul	w8, w3, w23
	add	x2, x19, w8, sxtw #2
	mov	x0, x20
	mov	x1, x23
	bl	_rtl_fw_page_write
	add	w23, w23, #1
	cmp	w22, w23
	b.ne	LBB0_8
LBB0_9:
	cbz	w21, LBB0_11
; %bb.10:
	ldr	w8, [x24]
	mul	w8, w8, w22
	add	x2, x19, w8, sxtw #2
	mov	x0, x20
	mov	x1, x22
	mov	x3, x21
	bl	_rtl_fw_page_write
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_COMP_FW,4,2                    ; @COMP_FW
	.comm	_DBG_TRACE,4,2                  ; @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FW size is %d bytes,\n"

	.comm	_HARDWARE_TYPE_RTL8192CE,8,3    ; @HARDWARE_TYPE_RTL8192CE
	.comm	_FW_8192C_PAGE_SIZE,4,2         ; @FW_8192C_PAGE_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"Page numbers should not greater then 4\n"

	.no_dead_strip	__rtl92c_write_fw
.subsections_via_symbols
