	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc4_txp_encoder_disable
_vc4_txp_encoder_disable:               ## @vc4_txp_encoder_disable
	.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
	callq	_encoder_to_vc4_txp
	movq	_TXP_DST_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_TXP_READ
	movq	_TXP_BUSY@GOTPCREL(%rip), %r15
	testl	%eax, (%r15)
	je	LBB0_5
## %bb.1:
	movq	_jiffies@GOTPCREL(%rip), %r12
	movq	(%r12), %r13
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_msecs_to_jiffies
	movq	%rax, %rbx
	addq	%r13, %rbx
	movl	(%r14), %edi
	movq	_TXP_ABORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_TXP_WRITE
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	callq	_TXP_READ
	testl	%eax, (%r15)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rdi
	movq	%rbx, %rsi
	callq	_time_before
	testq	%rax, %rax
	jne	LBB0_2
LBB0_4:
	movl	(%r14), %edi
	callq	_TXP_READ
	andl	(%r15), %eax
	movl	%eax, %edi
	callq	_WARN_ON
LBB0_5:
	movl	(%r14), %edi
	movq	_TXP_POWERDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_TXP_WRITE                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TXP_DST_CTRL,4,2               ## @TXP_DST_CTRL
	.comm	_TXP_BUSY,4,2                   ## @TXP_BUSY
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_TXP_ABORT,4,2                  ## @TXP_ABORT
	.comm	_TXP_POWERDOWN,4,2              ## @TXP_POWERDOWN
	.no_dead_strip	_vc4_txp_encoder_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vc4_txp_encoder_disable
_vc4_txp_encoder_disable:               ; @vc4_txp_encoder_disable
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	bl	_encoder_to_vc4_txp
Lloh0:
	adrp	x20, _TXP_DST_CTRL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _TXP_DST_CTRL@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_TXP_READ
Lloh2:
	adrp	x21, _TXP_BUSY@GOTPAGE
Lloh3:
	ldr	x21, [x21, _TXP_BUSY@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.1:
Lloh4:
	adrp	x22, _jiffies@GOTPAGE
Lloh5:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldr	x19, [x22]
	mov	w0, #1000
	bl	_msecs_to_jiffies
	add	x19, x0, x19
	ldr	w0, [x20]
Lloh6:
	adrp	x8, _TXP_ABORT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TXP_ABORT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_TXP_WRITE
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	bl	_TXP_READ
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x22]
	mov	x1, x19
	bl	_time_before
	cbnz	x0, LBB0_2
LBB0_4:
	ldr	w0, [x20]
	bl	_TXP_READ
	ldr	w8, [x21]
	and	w0, w8, w0
	bl	_WARN_ON
LBB0_5:
	ldr	w0, [x20]
Lloh9:
	adrp	x8, _TXP_POWERDOWN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TXP_POWERDOWN@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_TXP_WRITE
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_TXP_DST_CTRL,4,2               ; @TXP_DST_CTRL
	.comm	_TXP_BUSY,4,2                   ; @TXP_BUSY
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_TXP_ABORT,4,2                  ; @TXP_ABORT
	.comm	_TXP_POWERDOWN,4,2              ; @TXP_POWERDOWN
	.no_dead_strip	_vc4_txp_encoder_disable
.subsections_via_symbols
