	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function budget_av7110_send_fw_cmd
_budget_av7110_send_fw_cmd:             ## @budget_av7110_send_fw_cmd
	.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	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	movq	%r12, %rdx
	callq	_dprintk
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	cmpl	$3, %ebx
	jl	LBB0_3
## %bb.1:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	addq	%r13, %r13
	movl	$4, %ebx
	movq	_COMMAND@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_DEBINOSWAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r15), %rdx
	addq	%rbx, %rdx
	movl	(%r14,%rbx,4), %r8d
	movl	$0, (%rsp)
	movq	%r12, %rdi
	movl	$2, %ecx
	xorl	%r9d, %r9d
	callq	_ttpci_budget_debiwrite
	movl	$5, %edi
	callq	_msleep
	addq	$2, %rbx
	cmpq	%rbx, %r13
	jne	LBB0_2
LBB0_3:
	movq	_DEBINOSWAP@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_COMMAND@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_4
## %bb.5:
	movl	8(%r14), %r8d
	jmp	LBB0_6
LBB0_4:
	xorl	%r8d, %r8d
LBB0_6:
	addq	$2, %rdx
	movl	$0, (%rsp)
	movq	%r12, %rdi
	movl	$2, %ecx
	xorl	%r9d, %r9d
	callq	_ttpci_budget_debiwrite
	movl	$5, %edi
	callq	_msleep
	movl	(%r15), %esi
	movq	(%rbx), %rdx
	movl	(%r14), %r8d
	movl	$0, (%rsp)
	movq	%r12, %rdi
	movl	$2, %ecx
	xorl	%r9d, %r9d
	callq	_ttpci_budget_debiwrite
	movl	$5, %edi
	callq	_msleep
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"budget: %p\n"

	.comm	_DEBINOSWAP,4,2                 ## @DEBINOSWAP
	.comm	_COMMAND,8,3                    ## @COMMAND
	.no_dead_strip	_budget_av7110_send_fw_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function budget_av7110_send_fw_cmd
_budget_av7110_send_fw_cmd:             ; @budget_av7110_send_fw_cmd
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	mov	x2, x19
	bl	_dprintk
Lloh2:
	adrp	x22, _DEBINOSWAP@GOTPAGE
Lloh3:
	ldr	x22, [x22, _DEBINOSWAP@GOTPAGEOFF]
Lloh4:
	adrp	x23, _COMMAND@GOTPAGE
Lloh5:
	ldr	x23, [x23, _COMMAND@GOTPAGEOFF]
	cmp	w21, #3
	b.lt	LBB0_3
; %bb.1:
	mov	w8, w21
	add	x24, x20, #16
	lsl	x25, x8, #1
	mov	w26, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	ldr	x8, [x23]
	add	x2, x26, x8
	ldr	w4, [x24], #8
	mov	x0, x19
	mov	w3, #2
	mov	w5, #0
	mov	w6, #0
	bl	_ttpci_budget_debiwrite
	mov	w0, #5
	bl	_msleep
	add	x26, x26, #2
	cmp	x25, x26
	b.ne	LBB0_2
LBB0_3:
	ldr	w1, [x22]
	ldr	x8, [x23]
	cbz	w21, LBB0_5
; %bb.4:
	ldr	w4, [x20, #8]
	b	LBB0_6
LBB0_5:
	mov	w4, #0
LBB0_6:
	add	x2, x8, #2
	mov	x0, x19
	mov	w3, #2
	mov	w5, #0
	mov	w6, #0
	bl	_ttpci_budget_debiwrite
	mov	w0, #5
	bl	_msleep
	ldr	w1, [x22]
	ldr	x2, [x23]
	ldr	w4, [x20]
	mov	x0, x19
	mov	w3, #2
	mov	w5, #0
	mov	w6, #0
	bl	_ttpci_budget_debiwrite
	mov	w0, #5
	bl	_msleep
	mov	w0, #0
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"budget: %p\n"

	.comm	_DEBINOSWAP,4,2                 ; @DEBINOSWAP
	.comm	_COMMAND,8,3                    ; @COMMAND
	.no_dead_strip	_budget_av7110_send_fw_cmd
.subsections_via_symbols
