	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl8821ae_fill_h2c_command
__rtl8821ae_fill_h2c_command:           ## @_rtl8821ae_fill_h2c_command
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -144(%rbp)                ## 8-byte Spill
	movl	%esi, -108(%rbp)                ## 4-byte Spill
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_rtl_priv
	movq	%rax, %rbx
	movq	%r14, -136(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_hal
	movq	%rax, %r12
	movq	_COMP_CMD@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_spin_lock_irqsave
	cmpl	$0, (%r12)
	je	LBB0_8
## %bb.1:
	xorl	%r15d, %r15d
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movl	(%r13), %esi
	movl	(%r14), %edx
	movq	%rbx, %r14
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rcx
	movl	-108(%rbp), %r8d                ## 4-byte Reload
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	%r12, %r13
	cmpl	$0, (%r12)
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$1001, %r15d                    ## imm = 0x3E9
	movl	$1000, %r12d                    ## imm = 0x3E8
	cmovgel	%r15d, %r12d
	movq	%r14, %rbx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r15d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_spin_unlock_irqrestore
	leal	1(%r14), %r15d
	movq	_COMP_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rcx
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_RT_TRACE
	movl	$100, %edi
	callq	_udelay
	cmpl	%r14d, %r12d
	je	LBB0_33
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_spin_lock_irqsave
	cmpl	$0, (%r13)
	jne	LBB0_5
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rbx
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_spin_lock_irqsave
	movq	%r13, %r12
	cmpl	$0, (%r13)
	movq	_COMP_CMD@GOTPCREL(%rip), %r13
	movq	_DBG_LOUD@GOTPCREL(%rip), %r14
	jne	LBB0_2
LBB0_8:
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movl	$1, (%r12)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_spin_unlock_irqrestore
	movl	4(%r12), %r8d
	cmpq	$3, %r8
	movq	%r12, %r15
	movq	%r8, -104(%rbp)                 ## 8-byte Spill
	ja	LBB0_15
## %bb.9:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r8,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_10:
	movq	_REG_HMEBOX_0@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_REG_HMEBOX_EXT_0@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_15:
	xorl	%eax, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	_COMP_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	leaq	L_.str.3(%rip), %rcx
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
                                        ## kill: def $r8d killed $r8d killed $r8
	xorl	%eax, %eax
	callq	_RT_TRACE
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_12:
	movq	_REG_HMEBOX_1@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_REG_HMEBOX_EXT_1@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_13:
	movq	_REG_HMEBOX_2@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_REG_HMEBOX_EXT_2@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_14:
	movq	_REG_HMEBOX_3@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_REG_HMEBOX_EXT_3@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %r12                 ## 8-byte Reload
LBB0_16:
	movq	_REG_CR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rtl_read_byte
	cmpl	$234, %eax
	jne	LBB0_20
## %bb.17:
	movq	_REG_TXDMA_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rtl_read_byte
	cmpl	$234, %eax
	je	LBB0_19
## %bb.18:
	movq	_REG_TXPKT_EMPTY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_rtl_read_byte
	cmpl	$234, %eax
	jne	LBB0_24
LBB0_19:
	movq	_REG_SYS_CFG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	$3, %esi
	movq	%r12, %rdi
	movl	$255, %edx
	callq	_rtl_write_byte
	jmp	LBB0_24
LBB0_20:
	movq	%r15, -120(%rbp)                ## 8-byte Spill
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	movq	-104(%rbp), %rsi                ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	__rtl8821ae_check_fw_read_last_h2c
	testl	%eax, %eax
	jne	LBB0_26
## %bb.21:
	movl	$-100, %r15d
	movq	-104(%rbp), %r12                ## 8-byte Reload
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	incl	%r15d
	je	LBB0_23
## %bb.25:                              ##   in Loop: Header=BB0_22 Depth=1
	movl	$10, %edi
	callq	_udelay
	movq	-136(%rbp), %rdi                ## 8-byte Reload
	movl	%r12d, %esi
	callq	__rtl8821ae_check_fw_read_last_h2c
	movl	%eax, %r13d
	movq	%r14, %rdi
	movl	$304, %esi                      ## imm = 0x130
	callq	_rtl_read_byte
	movq	_COMP_CMD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rdi
	leaq	L_.str.5(%rip), %rcx
	movl	%r12d, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_RT_TRACE
	testl	%r13d, %r13d
	je	LBB0_22
LBB0_26:
	leaq	-60(%rbp), %r13
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	leaq	-80(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	-108(%rbp), %r9d                ## 4-byte Reload
	movl	%r9d, -64(%rbp)
	movq	_COMP_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	leaq	L_.str.7(%rip), %rcx
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	-144(%rbp), %r8                 ## 8-byte Reload
	leal	-4(%r8), %eax
	cmpl	$4, %eax
	jae	LBB0_27
## %bb.29:
	movq	-128(%rbp), %r15                ## 8-byte Reload
	leaq	12(%r15), %rsi
	addl	$-3, %r8d
	leaq	-80(%rbp), %rdi
	movl	%r8d, %edx
	callq	_memcpy
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	$3, %edx
	callq	_memcpy
	movl	-80(%rbp), %edx
	movq	%r12, %rdi
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movl	%r15d, %esi
	callq	_rtl_write_byte
	leal	1(%r15), %esi
	movl	-76(%rbp), %edx
	movq	%r12, %rdi
	callq	_rtl_write_byte
	leal	2(%r15), %esi
	movl	-72(%rbp), %edx
	movq	%r12, %rdi
	callq	_rtl_write_byte
	addl	$3, %r15d
	movl	-68(%rbp), %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_rtl_write_byte
	movl	-64(%rbp), %edx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_rtl_write_byte
	leal	1(%rbx), %esi
	movl	-60(%rbp), %edx
	movq	%r12, %rdi
	callq	_rtl_write_byte
	leal	2(%rbx), %esi
	movl	-56(%rbp), %edx
	movq	%r12, %rdi
	callq	_rtl_write_byte
	addl	$3, %ebx
	movl	-52(%rbp), %edx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_rtl_write_byte
	movq	-120(%rbp), %r15                ## 8-byte Reload
	jmp	LBB0_31
LBB0_27:
	leal	-1(%r8), %eax
	cmpl	$2, %eax
	movq	-120(%rbp), %r15                ## 8-byte Reload
	ja	LBB0_30
## %bb.28:
	movq	%r13, %rdi
	movq	-128(%rbp), %rsi                ## 8-byte Reload
	movl	%r8d, %edx
	callq	_memcpy
	movl	-64(%rbp), %edx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_rtl_write_byte
	leal	1(%rbx), %esi
	movl	-60(%rbp), %edx
	movq	%r12, %rdi
	callq	_rtl_write_byte
	leal	2(%rbx), %esi
	movl	-56(%rbp), %edx
	movq	%r12, %rdi
	callq	_rtl_write_byte
	addl	$3, %ebx
	movl	-52(%rbp), %edx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_rtl_write_byte
	jmp	LBB0_31
LBB0_23:
	movq	_COMP_CMD@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	leaq	L_.str.4(%rip), %rcx
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	-104(%rbp), %r8                 ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	-120(%rbp), %r15                ## 8-byte Reload
LBB0_24:
	movl	(%r13), %esi
	movl	(%r14), %edx
	leaq	L_.str.6(%rip), %rcx
	movq	%r12, %rdi
	movq	-104(%rbp), %r8                 ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	jmp	LBB0_32
LBB0_30:
	movq	_COMP_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	leaq	L_.str.3(%rip), %rcx
	movq	%r12, %rdi
                                        ## kill: def $r8d killed $r8d killed $r8
	xorl	%eax, %eax
	callq	_RT_TRACE
LBB0_31:
	movq	-104(%rbp), %rax                ## 8-byte Reload
	leal	1(%rax), %r8d
	xorl	%eax, %eax
	cmpl	$4, %r8d
	cmovel	%eax, %r8d
	movl	%r8d, 4(%r15)
	movq	_COMP_CMD@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	(%r14), %edx
	leaq	L_.str.8(%rip), %rcx
	movq	%r12, %rdi
LBB0_32:
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_spin_lock_irqsave
	movl	$0, (%r15)
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_spin_unlock_irqrestore
	movl	(%r13), %esi
	movl	(%r14), %edx
	leaq	L_.str.9(%rip), %rcx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
LBB0_33:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_35
## %bb.34:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_35:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_COMP_CMD,4,2                   ## @COMP_CMD
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"come in\n"

L_.str.1:                               ## @.str.1
	.asciz	"H2C set in progress! Wait to set..element_id(%d).\n"

L_.str.2:                               ## @.str.2
	.asciz	"Wait 100 us (%d times)...\n"

	.comm	_REG_HMEBOX_0,4,2               ## @REG_HMEBOX_0
	.comm	_REG_HMEBOX_EXT_0,4,2           ## @REG_HMEBOX_EXT_0
	.comm	_REG_HMEBOX_1,4,2               ## @REG_HMEBOX_1
	.comm	_REG_HMEBOX_EXT_1,4,2           ## @REG_HMEBOX_EXT_1
	.comm	_REG_HMEBOX_2,4,2               ## @REG_HMEBOX_2
	.comm	_REG_HMEBOX_EXT_2,4,2           ## @REG_HMEBOX_EXT_2
	.comm	_REG_HMEBOX_3,4,2               ## @REG_HMEBOX_3
	.comm	_REG_HMEBOX_EXT_3,4,2           ## @REG_HMEBOX_EXT_3
	.comm	_COMP_ERR,4,2                   ## @COMP_ERR
L_.str.3:                               ## @.str.3
	.asciz	"switch case %#x not processed\n"

	.comm	_REG_CR,4,2                     ## @REG_CR
	.comm	_REG_TXDMA_STATUS,4,2           ## @REG_TXDMA_STATUS
	.comm	_REG_TXPKT_EMPTY,4,2            ## @REG_TXPKT_EMPTY
	.comm	_REG_SYS_CFG1,4,2               ## @REG_SYS_CFG1
L_.str.4:                               ## @.str.4
	.asciz	"Waiting too long for FW read clear HMEBox(%d)!\n"

L_.str.5:                               ## @.str.5
	.asciz	"Waiting for FW read clear HMEBox(%d)!!! 0x130 = %2x\n"

L_.str.6:                               ## @.str.6
	.asciz	"Write H2C register BOX[%d] fail!!!!! Fw do not read.\n"

L_.str.7:                               ## @.str.7
	.asciz	"Write element_id box_reg(%4x) = %2x\n"

L_.str.8:                               ## @.str.8
	.asciz	"pHalData->last_hmeboxnum  = %d\n"

L_.str.9:                               ## @.str.9
	.asciz	"go out\n"

	.no_dead_strip	__rtl8821ae_fill_h2c_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl8821ae_fill_h2c_command
__rtl8821ae_fill_h2c_command:           ; @_rtl8821ae_fill_h2c_command
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	stp	x3, x2, [sp, #32]               ; 16-byte Folded Spill
	str	x1, [sp, #48]                   ; 8-byte Folded Spill
	mov	x25, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #88]
	bl	_rtl_priv
	mov	x19, x0
	mov	x0, x25
	bl	_rtl_priv
	bl	_rtl_hal
	mov	x20, x0
Lloh3:
	adrp	x27, _COMP_CMD@GOTPAGE
Lloh4:
	ldr	x27, [x27, _COMP_CMD@GOTPAGEOFF]
	ldr	w1, [x27]
Lloh5:
	adrp	x23, _DBG_LOUD@GOTPAGE
Lloh6:
	ldr	x23, [x23, _DBG_LOUD@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh7:
	adrp	x3, l_.str@PAGE
Lloh8:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	mov	x0, x19
	mov	x1, #0
	bl	_spin_lock_irqsave
	ldr	w8, [x20]
	cbz	w8, LBB0_8
; %bb.1:
	mov	w28, #0
Lloh9:
	adrp	x21, l_.str.1@PAGE
Lloh10:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh11:
	adrp	x26, l_.str.2@PAGE
Lloh12:
	add	x26, x26, l_.str.2@PAGEOFF
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	ldr	w1, [x27]
	ldr	w2, [x23]
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	str	x8, [sp]
	mov	x0, x19
	mov	x3, x21
	bl	_RT_TRACE
	ldr	w8, [x20]
	cbz	w8, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w28, #1000
	mov	w8, #1000
	csel	w24, w28, w8, gt
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	x1, #0
	bl	_spin_unlock_irqrestore
	add	w22, w28, #1
	ldr	w1, [x27]
	ldr	w2, [x23]
	str	x22, [sp]
	mov	x0, x19
	mov	x3, x26
	bl	_RT_TRACE
	mov	w0, #100
	bl	_udelay
	cmp	w24, w28
	b.eq	LBB0_33
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	mov	x0, x19
	mov	x1, #0
	bl	_spin_lock_irqsave
	ldr	w8, [x20]
	mov	x28, x22
	cbnz	w8, LBB0_4
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x22, x28
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	x1, #0
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	mov	x1, #0
	bl	_spin_lock_irqsave
	ldr	w8, [x20]
	mov	x28, x22
	cbnz	w8, LBB0_2
LBB0_8:
	mov	w8, #1
	str	w8, [x20]
	mov	x0, x19
	mov	x1, #0
	bl	_spin_unlock_irqrestore
	ldr	w21, [x20, #4]
	cmp	w21, #3
	b.hi	LBB0_11
; %bb.9:
Lloh13:
	adrp	x8, lJTI0_0@PAGE
Lloh14:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x9, LBB0_10
	ldrb	w10, [x8, x21]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_10:
Lloh15:
	adrp	x8, _REG_HMEBOX_0@GOTPAGE
Lloh16:
	ldr	x8, [x8, _REG_HMEBOX_0@GOTPAGEOFF]
Lloh17:
	ldr	w22, [x8]
Lloh18:
	adrp	x8, _REG_HMEBOX_EXT_0@GOTPAGE
Lloh19:
	ldr	x8, [x8, _REG_HMEBOX_EXT_0@GOTPAGEOFF]
	b	LBB0_15
LBB0_11:
Lloh20:
	adrp	x8, _COMP_ERR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _COMP_ERR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldr	w2, [x23]
	mov	x8, x21
	str	x8, [sp]
Lloh23:
	adrp	x3, l_.str.3@PAGE
Lloh24:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	mov	w24, #0
	mov	w22, #0
	b	LBB0_16
LBB0_12:
Lloh25:
	adrp	x8, _REG_HMEBOX_1@GOTPAGE
Lloh26:
	ldr	x8, [x8, _REG_HMEBOX_1@GOTPAGEOFF]
Lloh27:
	ldr	w22, [x8]
Lloh28:
	adrp	x8, _REG_HMEBOX_EXT_1@GOTPAGE
Lloh29:
	ldr	x8, [x8, _REG_HMEBOX_EXT_1@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:
Lloh30:
	adrp	x8, _REG_HMEBOX_2@GOTPAGE
Lloh31:
	ldr	x8, [x8, _REG_HMEBOX_2@GOTPAGEOFF]
Lloh32:
	ldr	w22, [x8]
Lloh33:
	adrp	x8, _REG_HMEBOX_EXT_2@GOTPAGE
Lloh34:
	ldr	x8, [x8, _REG_HMEBOX_EXT_2@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh35:
	adrp	x8, _REG_HMEBOX_3@GOTPAGE
Lloh36:
	ldr	x8, [x8, _REG_HMEBOX_3@GOTPAGEOFF]
Lloh37:
	ldr	w22, [x8]
Lloh38:
	adrp	x8, _REG_HMEBOX_EXT_3@GOTPAGE
Lloh39:
	ldr	x8, [x8, _REG_HMEBOX_EXT_3@GOTPAGEOFF]
LBB0_15:
	ldr	w24, [x8]
LBB0_16:
Lloh40:
	adrp	x8, _REG_CR@GOTPAGE
Lloh41:
	ldr	x8, [x8, _REG_CR@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rtl_read_byte
	cmp	w0, #234
	b.ne	LBB0_20
; %bb.17:
Lloh43:
	adrp	x8, _REG_TXDMA_STATUS@GOTPAGE
Lloh44:
	ldr	x8, [x8, _REG_TXDMA_STATUS@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rtl_read_byte
	cmp	w0, #234
	b.eq	LBB0_19
; %bb.18:
Lloh46:
	adrp	x8, _REG_TXPKT_EMPTY@GOTPAGE
Lloh47:
	ldr	x8, [x8, _REG_TXPKT_EMPTY@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rtl_read_byte
	cmp	w0, #234
	b.ne	LBB0_31
LBB0_19:
Lloh49:
	adrp	x8, _REG_SYS_CFG1@GOTPAGE
Lloh50:
	ldr	x8, [x8, _REG_SYS_CFG1@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	add	w1, w8, #3
	mov	x0, x19
	mov	w2, #255
	bl	_rtl_write_byte
	b	LBB0_31
LBB0_20:
	str	w24, [sp, #20]                  ; 4-byte Folded Spill
	str	x22, [sp, #24]                  ; 8-byte Folded Spill
	mov	x0, x25
	mov	x1, x21
	bl	__rtl8821ae_check_fw_read_last_h2c
	cbnz	w0, LBB0_24
; %bb.21:
	mov	w26, #-100
	mov	x24, x21
Lloh52:
	adrp	x28, l_.str.5@PAGE
Lloh53:
	add	x28, x28, l_.str.5@PAGEOFF
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	adds	w26, w26, #1
	b.hs	LBB0_30
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	mov	w0, #10
	bl	_udelay
	mov	x0, x25
	mov	x1, x21
	bl	__rtl8821ae_check_fw_read_last_h2c
	mov	x22, x0
	mov	x0, x19
	mov	w1, #304
	bl	_rtl_read_byte
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w1, [x27]
	ldr	w2, [x23]
	stp	x24, x0, [sp]
	mov	x0, x19
	mov	x3, x28
	bl	_RT_TRACE
	cbz	w22, LBB0_22
LBB0_24:
	add	x8, sp, #72
	add	x25, x8, #4
	add	x0, sp, #72
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	add	x0, sp, #56
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	str	w8, [sp, #72]
	ldr	w1, [x27]
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	ldr	w2, [x23]
	ldr	x24, [sp, #24]                  ; 8-byte Folded Reload
	stp	x24, x8, [sp]
Lloh54:
	adrp	x3, l_.str.7@PAGE
Lloh55:
	add	x3, x3, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	sub	w8, w9, #4
	cmp	w8, #4
	b.hs	LBB0_26
; %bb.25:
	ldr	x22, [sp, #32]                  ; 8-byte Folded Reload
	add	x1, x22, #12
	sub	w2, w9, #3
	add	x0, sp, #56
	bl	_memcpy
	mov	x0, x25
	mov	x1, x22
	mov	w2, #3
	bl	_memcpy
	ldr	w2, [sp, #56]
	mov	x0, x19
	ldr	w22, [sp, #20]                  ; 4-byte Folded Reload
	mov	x1, x22
	bl	_rtl_write_byte
	add	w1, w22, #1
	ldr	w2, [sp, #60]
	mov	x0, x19
	bl	_rtl_write_byte
	add	w1, w22, #2
	ldr	w2, [sp, #64]
	mov	x0, x19
	bl	_rtl_write_byte
	add	w1, w22, #3
	ldr	w2, [sp, #68]
	mov	x0, x19
	bl	_rtl_write_byte
	b	LBB0_28
LBB0_26:
	sub	w8, w9, #1
	cmp	w8, #2
	b.hi	LBB0_35
; %bb.27:
	mov	x0, x25
	ldr	x1, [sp, #32]                   ; 8-byte Folded Reload
	mov	x2, x9
	bl	_memcpy
LBB0_28:
	ldr	w2, [sp, #72]
	mov	x0, x19
	mov	x1, x24
	bl	_rtl_write_byte
	add	w1, w24, #1
	ldr	w2, [sp, #76]
	mov	x0, x19
	bl	_rtl_write_byte
	add	w1, w24, #2
	ldr	w2, [sp, #80]
	mov	x0, x19
	bl	_rtl_write_byte
	add	w1, w24, #3
	ldr	w2, [sp, #84]
	mov	x0, x19
	bl	_rtl_write_byte
LBB0_29:
	add	w8, w21, #1
	cmp	w8, #4
	csinc	w8, wzr, w21, eq
	str	w8, [x20, #4]
	ldr	w1, [x27]
	ldr	w2, [x23]
	str	x8, [sp]
Lloh56:
	adrp	x3, l_.str.8@PAGE
Lloh57:
	add	x3, x3, l_.str.8@PAGEOFF
	b	LBB0_32
LBB0_30:
	ldr	w1, [x27]
	ldr	w2, [x23]
	mov	x8, x21
	str	x8, [sp]
Lloh58:
	adrp	x3, l_.str.4@PAGE
Lloh59:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
LBB0_31:
	ldr	w1, [x27]
	ldr	w2, [x23]
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	str	x21, [sp]
Lloh60:
	adrp	x3, l_.str.6@PAGE
Lloh61:
	add	x3, x3, l_.str.6@PAGEOFF
LBB0_32:
	mov	x0, x19
	bl	_RT_TRACE
	mov	x0, x19
	mov	x1, #0
	bl	_spin_lock_irqsave
	str	wzr, [x20]
	mov	x0, x19
	mov	x1, #0
	bl	_spin_unlock_irqrestore
	ldr	w1, [x27]
	ldr	w2, [x23]
Lloh62:
	adrp	x3, l_.str.9@PAGE
Lloh63:
	add	x3, x3, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
LBB0_33:
	ldr	x8, [sp, #88]
Lloh64:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh65:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh66:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_36
; %bb.34:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_35:
Lloh67:
	adrp	x8, _COMP_ERR@GOTPAGE
Lloh68:
	ldr	x8, [x8, _COMP_ERR@GOTPAGEOFF]
Lloh69:
	ldr	w1, [x8]
	ldr	w2, [x23]
	str	x9, [sp]
Lloh70:
	adrp	x3, l_.str.3@PAGE
Lloh71:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	b	LBB0_29
LBB0_36:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_12-LBB0_10)>>2
	.byte	(LBB0_13-LBB0_10)>>2
	.byte	(LBB0_14-LBB0_10)>>2
                                        ; -- End function
	.comm	_COMP_CMD,4,2                   ; @COMP_CMD
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"come in\n"

l_.str.1:                               ; @.str.1
	.asciz	"H2C set in progress! Wait to set..element_id(%d).\n"

l_.str.2:                               ; @.str.2
	.asciz	"Wait 100 us (%d times)...\n"

	.comm	_REG_HMEBOX_0,4,2               ; @REG_HMEBOX_0
	.comm	_REG_HMEBOX_EXT_0,4,2           ; @REG_HMEBOX_EXT_0
	.comm	_REG_HMEBOX_1,4,2               ; @REG_HMEBOX_1
	.comm	_REG_HMEBOX_EXT_1,4,2           ; @REG_HMEBOX_EXT_1
	.comm	_REG_HMEBOX_2,4,2               ; @REG_HMEBOX_2
	.comm	_REG_HMEBOX_EXT_2,4,2           ; @REG_HMEBOX_EXT_2
	.comm	_REG_HMEBOX_3,4,2               ; @REG_HMEBOX_3
	.comm	_REG_HMEBOX_EXT_3,4,2           ; @REG_HMEBOX_EXT_3
	.comm	_COMP_ERR,4,2                   ; @COMP_ERR
l_.str.3:                               ; @.str.3
	.asciz	"switch case %#x not processed\n"

	.comm	_REG_CR,4,2                     ; @REG_CR
	.comm	_REG_TXDMA_STATUS,4,2           ; @REG_TXDMA_STATUS
	.comm	_REG_TXPKT_EMPTY,4,2            ; @REG_TXPKT_EMPTY
	.comm	_REG_SYS_CFG1,4,2               ; @REG_SYS_CFG1
l_.str.4:                               ; @.str.4
	.asciz	"Waiting too long for FW read clear HMEBox(%d)!\n"

l_.str.5:                               ; @.str.5
	.asciz	"Waiting for FW read clear HMEBox(%d)!!! 0x130 = %2x\n"

l_.str.6:                               ; @.str.6
	.asciz	"Write H2C register BOX[%d] fail!!!!! Fw do not read.\n"

l_.str.7:                               ; @.str.7
	.asciz	"Write element_id box_reg(%4x) = %2x\n"

l_.str.8:                               ; @.str.8
	.asciz	"pHalData->last_hmeboxnum  = %d\n"

l_.str.9:                               ; @.str.9
	.asciz	"go out\n"

	.no_dead_strip	__rtl8821ae_fill_h2c_command
.subsections_via_symbols
