	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pvr2_hdw_commit_setup
_pvr2_hdw_commit_setup:                 ## @pvr2_hdw_commit_setup
	.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	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rdi), %eax
	movl	%eax, -164(%rbp)                ## 4-byte Spill
	cmpl	$0, 4(%rdi)
	je	LBB0_7
## %bb.1:
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	movq	%r13, -184(%rbp)                ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movl	4(%r13), %eax
	addq	$8, %r15
	cmpq	%rax, %r12
	jae	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %r14
	movq	(%r14,%r15), %rax
	movq	24(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r14,%r15), %rbx
	movq	%rbx, %rdi
	callq	*%rax
	movq	_PVR2_TRACE_CTL@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rcx), %eax
	movl	$1, -164(%rbp)                  ## 4-byte Folded Spill
	movq	_pvrusb2_debug@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14,%r15), %rax
	movl	16(%rax), %ecx
	leaq	-160(%rbp), %rdi
	movl	$100, %esi
	leaq	L_.str(%rip), %rdx
	callq	_scnprintf
	movl	%eax, %r13d
	movl	$0, -168(%rbp)
	movq	(%r14,%r15), %rax
	movq	%rbx, %rdi
	leaq	-168(%rbp), %rsi
	callq	*8(%rax)
	movl	-168(%rbp), %edx
	movl	%r13d, %eax
	leaq	(%rax,%rbp), %rcx
	addq	$-160, %rcx
	movl	$100, %r8d
	subl	%r13d, %r8d
	movq	%rbx, %rdi
	movl	$-1, %esi
	leaq	-172(%rbp), %r9
	callq	_pvr2_ctrl_value_to_sym_internal
	addl	-172(%rbp), %r13d
	leaq	-160(,%r13), %rax
	addq	%rbp, %rax
	movq	%rax, -192(%rbp)                ## 8-byte Spill
	movl	$100, %ebx
	subl	%r13d, %ebx
	movq	(%r14,%r15), %rax
	movl	(%rax), %edi
	callq	_get_ctrl_typename
	movq	-192(%rbp), %rdi                ## 8-byte Reload
	movl	%ebx, %esi
	leaq	L_.str.1(%rip), %rdx
	movl	%eax, %ecx
	callq	_scnprintf
	addl	%eax, %r13d
	movq	_PVR2_TRACE_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r13d, %edx
	movq	-184(%rbp), %r13                ## 8-byte Reload
	leaq	-160(%rbp), %rcx
	callq	_pvr2_trace
	jmp	LBB0_6
LBB0_7:
	cmpl	$0, -164(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_8
## %bb.9:
	movq	$0, 8(%r13)
	leaq	L_.str.3(%rip), %rdi
	xorl	%esi, %esi
	callq	_trace_stbit
	movq	%r13, %rdi
	callq	_pvr2_hdw_state_sched
	movl	$1, %eax
	jmp	LBB0_10
LBB0_8:
	xorl	%eax, %eax
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_pvrusb2_debug,4,2              ## @pvrusb2_debug
	.comm	_PVR2_TRACE_CTL,4,2             ## @PVR2_TRACE_CTL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\"%s\" <-- "

L_.str.1:                               ## @.str.1
	.asciz	" <%s>"

L_.str.2:                               ## @.str.2
	.asciz	"/*--TRACE_COMMIT--*/ %.*s"

L_.str.3:                               ## @.str.3
	.asciz	"state_pipeline_config"

	.no_dead_strip	_pvr2_hdw_commit_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pvr2_hdw_commit_setup
_pvr2_hdw_commit_setup:                 ; @pvr2_hdw_commit_setup
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldp	w24, w8, [x0]
	cbz	w8, LBB0_8
; %bb.1:
	mov	x25, #0
	mov	x26, #0
Lloh3:
	adrp	x28, _PVR2_TRACE_CTL@GOTPAGE
Lloh4:
	ldr	x28, [x28, _PVR2_TRACE_CTL@GOTPAGEOFF]
	add	x20, sp, #20
	mov	w21, #100
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w24, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x26, x26, #1
	ldr	w8, [x19, #4]
	add	x25, x25, #8
	cmp	x26, x8
	b.hs	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x19, #16]
	add	x23, x22, x25
	ldr	x8, [x23]
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	blr	x8
	cbz	w0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh5:
	adrp	x8, _pvrusb2_debug@GOTPAGE
Lloh6:
	ldr	x8, [x8, _pvrusb2_debug@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22, x25]
	ldr	w3, [x8, #16]
	add	x0, sp, #20
	mov	w1, #100
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	bl	_scnprintf
	mov	x24, x0
	str	wzr, [sp, #16]
	ldr	x8, [x22, x25]
	ldr	x8, [x8, #8]
	add	x1, sp, #16
	mov	x0, x23
	blr	x8
	ldr	w2, [sp, #16]
	add	x3, x20, w24, uxtw
	sub	w4, w21, w24
	add	x5, sp, #12
	mov	x0, x23
	mov	w1, #-1
	bl	_pvr2_ctrl_value_to_sym_internal
	ldr	w8, [sp, #12]
	add	w27, w8, w24
	add	x23, x20, x27
	sub	w24, w21, w27
	ldr	x8, [x22, x25]
	ldr	w0, [x8]
	bl	_get_ctrl_typename
	mov	x3, x0
	mov	x0, x23
	mov	x1, x24
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_scnprintf
	add	w2, w0, w27
	ldr	w0, [x28]
	add	x3, sp, #20
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_pvr2_trace
	b	LBB0_2
LBB0_8:
	cbz	w24, LBB0_10
; %bb.9:
	str	xzr, [x19, #8]
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, #0
	bl	_trace_stbit
	mov	x0, x19
	bl	_pvr2_hdw_state_sched
	mov	w0, #1
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldur	x8, [x29, #-88]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	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_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_pvrusb2_debug,4,2              ; @pvrusb2_debug
	.comm	_PVR2_TRACE_CTL,4,2             ; @PVR2_TRACE_CTL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\"%s\" <-- "

l_.str.1:                               ; @.str.1
	.asciz	" <%s>"

l_.str.2:                               ; @.str.2
	.asciz	"/*--TRACE_COMMIT--*/ %.*s"

l_.str.3:                               ; @.str.3
	.asciz	"state_pipeline_config"

	.no_dead_strip	_pvr2_hdw_commit_setup
.subsections_via_symbols
