	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ttpci_budget_debiwrite_nolock
_ttpci_budget_debiwrite_nolock:         ## @ttpci_budget_debiwrite_nolock
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r13d
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	movl	%r9d, %esi
	callq	_saa7146_wait_for_debi_done
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movq	_DEBI_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$17, %r13d
	movzwl	%r15w, %edx
	orl	%r13d, %edx
	movq	%rbx, %rdi
	callq	_saa7146_write
	movq	_DEBI_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_saa7146_write
	movq	_DEBI_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_saa7146_write
	movq	_DEBI_AD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_saa7146_write
	movq	_MC2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$131074, %edx                   ## imm = 0x20002
	callq	_saa7146_write
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_saa7146_wait_for_debi_done
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%ecx, %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBI_COMMAND,4,2               ## @DEBI_COMMAND
	.comm	_DEBI_CONFIG,4,2                ## @DEBI_CONFIG
	.comm	_DEBI_PAGE,4,2                  ## @DEBI_PAGE
	.comm	_DEBI_AD,4,2                    ## @DEBI_AD
	.comm	_MC2,4,2                        ## @MC2
	.no_dead_strip	_ttpci_budget_debiwrite_nolock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ttpci_budget_debiwrite_nolock
_ttpci_budget_debiwrite_nolock:         ; @ttpci_budget_debiwrite_nolock
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x5
	mov	x21, x4
	mov	x23, x3
	mov	x24, x2
	mov	x22, x1
	ldr	x20, [x0]
	mov	x0, x20
	mov	x1, x5
	bl	_saa7146_wait_for_debi_done
	tbnz	w0, #31, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _DEBI_COMMAND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEBI_COMMAND@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	and	w2, w24, #0xffff
	bfi	w2, w23, #17, #15
	mov	x0, x20
	bl	_saa7146_write
Lloh3:
	adrp	x8, _DEBI_CONFIG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DEBI_CONFIG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x22
	bl	_saa7146_write
Lloh6:
	adrp	x8, _DEBI_PAGE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DEBI_PAGE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_saa7146_write
Lloh9:
	adrp	x8, _DEBI_AD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DEBI_AD@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_saa7146_write
Lloh12:
	adrp	x8, _MC2@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MC2@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #131074
	bl	_saa7146_write
	mov	x0, x20
	mov	x1, x19
	bl	_saa7146_wait_for_debi_done
	cmp	w0, #0
	csel	w0, w0, wzr, lt
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBI_COMMAND,4,2               ; @DEBI_COMMAND
	.comm	_DEBI_CONFIG,4,2                ; @DEBI_CONFIG
	.comm	_DEBI_PAGE,4,2                  ; @DEBI_PAGE
	.comm	_DEBI_AD,4,2                    ; @DEBI_AD
	.comm	_MC2,4,2                        ; @MC2
	.no_dead_strip	_ttpci_budget_debiwrite_nolock
.subsections_via_symbols
