	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl88e_fill_h2c_command
__rtl88e_fill_h2c_command:              ## @_rtl88e_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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -160(%rbp)                ## 8-byte Spill
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -184(%rbp)                ## 8-byte Spill
	movq	%rsi, -168(%rbp)                ## 8-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, -176(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_hal
	movq	%rax, %r15
	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
	callq	_spin_lock_irqsave
	cmpl	$0, (%r15)
	je	LBB0_8
## %bb.1:
	xorl	%r12d, %r12d
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
	movq	-168(%rbp), %r8                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	%r15, %r13
	cmpl	$0, (%r15)
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$1001, %r12d                    ## imm = 0x3E9
	movl	$1000, %r15d                    ## imm = 0x3E8
	cmovgel	%r12d, %r15d
	movq	%r14, %rbx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r12d, %r14d
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	leal	1(%r14), %r12d
	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	%r12d, %r8d
	xorl	%eax, %eax
	callq	_RT_TRACE
	movl	$100, %edi
	callq	_udelay
	cmpl	%r14d, %r15d
	je	LBB0_28
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%rbx, %rdi
	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
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	%r13, %r15
	cmpl	$0, (%r13)
	movq	_COMP_CMD@GOTPCREL(%rip), %r13
	movq	_DBG_LOUD@GOTPCREL(%rip), %r14
	jne	LBB0_2
LBB0_8:
	movl	$1, (%r15)
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	8(%r15), %r8
	cmpq	$3, %r8
	movq	%r15, %r12
	movq	%r8, -136(%rbp)                 ## 8-byte Spill
	movq	%rbx, -144(%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	%r14, %r15
	movq	_REG_HMEBOX_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	_REG_HMEBOX_EXT_0@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_15:
	movq	_COMP_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %r15
	movl	(%r14), %edx
	leaq	L_.str.4(%rip), %rcx
	xorl	%eax, %eax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	-136(%rbp), %r8                 ## 8-byte Reload
	xorl	%eax, %eax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	jmp	LBB0_16
LBB0_12:
	movq	%r14, %r15
	movq	_REG_HMEBOX_1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	_REG_HMEBOX_EXT_1@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_13:
	movq	%r14, %r15
	movq	_REG_HMEBOX_2@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	_REG_HMEBOX_EXT_2@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_14:
	movq	%r14, %r15
	movq	_REG_HMEBOX_3@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	_REG_HMEBOX_EXT_3@GOTPCREL(%rip), %rax
LBB0_11:
	movq	(%rax), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
LBB0_16:
	movq	%r12, -152(%rbp)                ## 8-byte Spill
	movq	-176(%rbp), %rdi                ## 8-byte Reload
	movq	%r8, %rsi
	callq	__rtl88e_check_fw_read_last_h2c
	testl	%eax, %eax
	jne	LBB0_20
## %bb.17:
	movq	$-100, %r12
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	movq	-144(%rbp), %r14                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	incq	%r12
	je	LBB0_30
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	$10, %edi
	callq	_udelay
	movq	-176(%rbp), %rdi                ## 8-byte Reload
	movq	%rbx, %rsi
	callq	__rtl88e_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
	movl	(%r15), %edx
	movq	%r14, %rdi
	leaq	L_.str.6(%rip), %rcx
	movq	%rbx, %r8
	movq	%rax, %r9
	xorl	%eax, %eax
	callq	_RT_TRACE
	testl	%r13d, %r13d
	je	LBB0_18
LBB0_20:
	leaq	-80(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	leaq	-112(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	-168(%rbp), %r9                 ## 8-byte Reload
	movq	%r9, -80(%rbp)
	movq	_COMP_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %r14
	movl	(%r15), %edx
	leaq	L_.str.8(%rip), %rcx
	movq	-144(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdi
	movq	-128(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %r8
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	-184(%rbp), %r8                 ## 8-byte Reload
	leal	-4(%r8), %eax
	cmpl	$4, %eax
	movq	-152(%rbp), %rbx                ## 8-byte Reload
	jae	LBB0_21
## %bb.24:
	movq	-160(%rbp), %r15                ## 8-byte Reload
	leaq	24(%r15), %rsi
	addl	$-3, %r8d
	leaq	-112(%rbp), %rdi
	movl	%r8d, %edx
	callq	_memcpy
	leaq	-72(%rbp), %rdi
	movq	%r15, %rsi
	movl	$3, %edx
	callq	_memcpy
	movq	-112(%rbp), %rdx
	movq	%r12, %rdi
	movq	%rbx, %r15
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_rtl_write_byte
	incq	%rbx
	movq	-104(%rbp), %rdx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rbx
	callq	_rtl_write_byte
	jmp	LBB0_23
LBB0_21:
	leaq	-72(%rbp), %rdi
	leal	-1(%r8), %eax
	cmpl	$2, %eax
	ja	LBB0_25
## %bb.22:
	movq	-160(%rbp), %rsi                ## 8-byte Reload
	movl	%r8d, %edx
	callq	_memcpy
LBB0_23:
	movq	-80(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_rtl_write_byte
	leaq	1(%r13), %rsi
	movq	-72(%rbp), %rdx
	movq	%r12, %rdi
	callq	_rtl_write_byte
	leaq	2(%r13), %rsi
	movq	-64(%rbp), %rdx
	movq	%r12, %rdi
	callq	_rtl_write_byte
	addq	$3, %r13
	movq	-56(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_rtl_write_byte
LBB0_26:
	movq	-136(%rbp), %rax                ## 8-byte Reload
	incq	%rax
	cmpq	$4, %rax
	movl	$0, %r8d
	cmovneq	%rax, %r8
	movq	%r8, 8(%rbx)
	movq	_COMP_CMD@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	(%r14), %edx
	leaq	L_.str.9(%rip), %rcx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
LBB0_27:
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movl	$0, (%rbx)
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movl	(%r13), %esi
	movl	(%r14), %edx
	leaq	L_.str.10(%rip), %rcx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
LBB0_28:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_31
## %bb.29:
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	movq	_COMP_CMD@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	(%r15), %edx
	leaq	L_.str.5(%rip), %rcx
	movq	-144(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdi
	movq	-136(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %r8
	xorl	%eax, %eax
	callq	_RT_TRACE
	movl	(%r13), %esi
	movl	(%r15), %edx
	leaq	L_.str.7(%rip), %rcx
	movq	%r12, %rdi
	movq	%r14, %r8
	movq	%r15, %r14
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	-152(%rbp), %rbx                ## 8-byte Reload
	jmp	LBB0_27
LBB0_25:
	movq	_COMP_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	leaq	L_.str.4(%rip), %rcx
	movq	%r12, %rdi
                                        ## kill: def $r8d killed $r8d killed $r8
	xorl	%eax, %eax
	callq	_RT_TRACE
	jmp	LBB0_26
LBB0_31:
	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,8,3               ## @REG_HMEBOX_0
	.comm	_REG_HMEBOX_EXT_0,8,3           ## @REG_HMEBOX_EXT_0
	.comm	_REG_HMEBOX_1,8,3               ## @REG_HMEBOX_1
	.comm	_REG_HMEBOX_EXT_1,8,3           ## @REG_HMEBOX_EXT_1
	.comm	_REG_HMEBOX_2,8,3               ## @REG_HMEBOX_2
	.comm	_REG_HMEBOX_EXT_2,8,3           ## @REG_HMEBOX_EXT_2
	.comm	_REG_HMEBOX_3,8,3               ## @REG_HMEBOX_3
	.comm	_REG_HMEBOX_EXT_3,8,3           ## @REG_HMEBOX_EXT_3
	.comm	_COMP_ERR,4,2                   ## @COMP_ERR
L_.str.4:                               ## @.str.4
	.asciz	"switch case %#x not processed\n"

L_.str.5:                               ## @.str.5
	.asciz	"Waiting too long for FW read clear HMEBox(%d)!\n"

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

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

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

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

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

	.no_dead_strip	__rtl88e_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 _rtl88e_fill_h2c_command
__rtl88e_fill_h2c_command:              ; @_rtl88e_fill_h2c_command
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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, #40]               ; 16-byte Folded Spill
	mov	x24, x1
	mov	x25, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-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	x22, _DBG_LOUD@GOTPAGE
Lloh6:
	ldr	x22, [x22, _DBG_LOUD@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh7:
	adrp	x3, l_.str@PAGE
Lloh8:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w8, [x20]
	cbz	w8, LBB0_8
; %bb.1:
	mov	w28, #0
Lloh9:
	adrp	x26, l_.str.2@PAGE
Lloh10:
	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, [x22]
	mov	x23, x24
	str	x24, [sp]
	mov	x0, x19
Lloh11:
	adrp	x3, l_.str.1@PAGE
Lloh12:
	add	x3, x3, l_.str.1@PAGEOFF
	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
	bl	_spin_unlock_irqrestore
	add	w21, w28, #1
	ldr	w1, [x27]
	ldr	w2, [x22]
	str	x21, [sp]
	mov	x0, x19
	mov	x3, x26
	bl	_RT_TRACE
	mov	w0, #100
	bl	_udelay
	cmp	w24, w28
	b.eq	LBB0_27
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w8, [x20]
	mov	x28, x21
	cbnz	w8, LBB0_4
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x21, x28
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w8, [x20]
	mov	x28, x21
	mov	x24, x23
	cbnz	w8, LBB0_2
LBB0_8:
	mov	w8, #1
	str	w8, [x20]
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	ldr	x23, [x20, #8]
	cmp	x23, #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, x23]
	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	x8, [x8]
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
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, [x22]
	str	x23, [sp]
Lloh23:
	adrp	x3, l_.str.4@PAGE
Lloh24:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	stp	xzr, xzr, [sp, #24]             ; 16-byte Folded Spill
	b	LBB0_16
LBB0_12:
Lloh25:
	adrp	x8, _REG_HMEBOX_1@GOTPAGE
Lloh26:
	ldr	x8, [x8, _REG_HMEBOX_1@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
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	x8, [x8]
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
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	x8, [x8]
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
Lloh38:
	adrp	x8, _REG_HMEBOX_EXT_3@GOTPAGE
Lloh39:
	ldr	x8, [x8, _REG_HMEBOX_EXT_3@GOTPAGEOFF]
LBB0_15:
	ldr	x8, [x8]
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
LBB0_16:
	mov	x0, x25
	mov	x1, x23
	bl	__rtl88e_check_fw_read_last_h2c
	cbnz	w0, LBB0_20
; %bb.17:
	mov	x26, #-100
Lloh40:
	adrp	x28, l_.str.6@PAGE
Lloh41:
	add	x28, x28, l_.str.6@PAGEOFF
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	adds	x26, x26, #1
	b.hs	LBB0_29
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	w0, #10
	bl	_udelay
	mov	x0, x25
	mov	x1, x23
	bl	__rtl88e_check_fw_read_last_h2c
	mov	x21, x0
	mov	x0, x19
	mov	w1, #304
	bl	_rtl_read_byte
	ldr	w1, [x27]
	ldr	w2, [x22]
	stp	x23, x0, [sp]
	mov	x0, x19
	mov	x3, x28
	bl	_RT_TRACE
	cbz	w21, LBB0_18
LBB0_20:
	add	x8, sp, #88
	add	x25, x8, #8
	add	x0, sp, #88
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	add	x0, sp, #56
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	str	x24, [sp, #88]
	ldr	w1, [x27]
	ldr	w2, [x22]
	str	x24, [sp, #8]
	ldr	x24, [sp, #32]                  ; 8-byte Folded Reload
	str	x24, [sp]
Lloh42:
	adrp	x3, l_.str.8@PAGE
Lloh43:
	add	x3, x3, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	ldr	x9, [sp, #48]                   ; 8-byte Folded Reload
	sub	w8, w9, #4
	cmp	w8, #4
	b.hs	LBB0_22
; %bb.21:
	ldr	x21, [sp, #40]                  ; 8-byte Folded Reload
	add	x1, x21, #24
	sub	w2, w9, #3
	add	x0, sp, #56
	bl	_memcpy
	mov	x0, x25
	mov	x1, x21
	mov	w2, #3
	bl	_memcpy
	ldr	x2, [sp, #56]
	mov	x0, x19
	ldr	x21, [sp, #24]                  ; 8-byte Folded Reload
	mov	x1, x21
	bl	_rtl_write_byte
	add	x1, x21, #1
	ldr	x2, [sp, #64]
	mov	x0, x19
	bl	_rtl_write_byte
	b	LBB0_24
LBB0_22:
	sub	w8, w9, #1
	cmp	w8, #2
	b.hi	LBB0_30
; %bb.23:
	mov	x0, x25
	ldr	x1, [sp, #40]                   ; 8-byte Folded Reload
	mov	x2, x9
	bl	_memcpy
LBB0_24:
	ldr	x2, [sp, #88]
	mov	x0, x19
	mov	x1, x24
	bl	_rtl_write_byte
	add	x1, x24, #1
	ldr	x2, [sp, #96]
	mov	x0, x19
	bl	_rtl_write_byte
	add	x1, x24, #2
	ldr	x2, [sp, #104]
	mov	x0, x19
	bl	_rtl_write_byte
	add	x1, x24, #3
	ldr	x2, [sp, #112]
	mov	x0, x19
	bl	_rtl_write_byte
LBB0_25:
	add	x8, x23, #1
	cmp	x8, #4
	csinc	x8, xzr, x23, eq
	str	x8, [x20, #8]
	ldr	w1, [x27]
	ldr	w2, [x22]
	str	x8, [sp]
Lloh44:
	adrp	x3, l_.str.9@PAGE
Lloh45:
	add	x3, x3, l_.str.9@PAGEOFF
LBB0_26:
	mov	x0, x19
	bl	_RT_TRACE
	mov	x0, x19
	bl	_spin_lock_irqsave
	str	wzr, [x20]
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	ldr	w1, [x27]
	ldr	w2, [x22]
Lloh46:
	adrp	x3, l_.str.10@PAGE
Lloh47:
	add	x3, x3, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
LBB0_27:
	ldur	x8, [x29, #-88]
Lloh48:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh49:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh50:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_31
; %bb.28:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_29:
	ldr	w1, [x27]
	ldr	w2, [x22]
	str	x23, [sp]
Lloh51:
	adrp	x3, l_.str.5@PAGE
Lloh52:
	add	x3, x3, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	ldr	w1, [x27]
	ldr	w2, [x22]
	str	x23, [sp]
Lloh53:
	adrp	x3, l_.str.7@PAGE
Lloh54:
	add	x3, x3, l_.str.7@PAGEOFF
	b	LBB0_26
LBB0_30:
Lloh55:
	adrp	x8, _COMP_ERR@GOTPAGE
Lloh56:
	ldr	x8, [x8, _COMP_ERR@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x8]
	ldr	w2, [x22]
	str	x9, [sp]
Lloh58:
	adrp	x3, l_.str.4@PAGE
Lloh59:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	b	LBB0_25
LBB0_31:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.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 AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.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,8,3               ; @REG_HMEBOX_0
	.comm	_REG_HMEBOX_EXT_0,8,3           ; @REG_HMEBOX_EXT_0
	.comm	_REG_HMEBOX_1,8,3               ; @REG_HMEBOX_1
	.comm	_REG_HMEBOX_EXT_1,8,3           ; @REG_HMEBOX_EXT_1
	.comm	_REG_HMEBOX_2,8,3               ; @REG_HMEBOX_2
	.comm	_REG_HMEBOX_EXT_2,8,3           ; @REG_HMEBOX_EXT_2
	.comm	_REG_HMEBOX_3,8,3               ; @REG_HMEBOX_3
	.comm	_REG_HMEBOX_EXT_3,8,3           ; @REG_HMEBOX_EXT_3
	.comm	_COMP_ERR,4,2                   ; @COMP_ERR
l_.str.4:                               ; @.str.4
	.asciz	"switch case %#x not processed\n"

l_.str.5:                               ; @.str.5
	.asciz	"Waiting too long for FW read clear HMEBox(%d)!\n"

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

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

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

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

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

	.no_dead_strip	__rtl88e_fill_h2c_command
.subsections_via_symbols
