	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_v9_0_ring_emit_patch_cond_exec
_gfx_v9_0_ring_emit_patch_cond_exec:    ## @gfx_v9_0_ring_emit_patch_cond_exec
	.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	%esi, %r14d
	movq	%rdi, %r12
	xorl	%edi, %edi
	cmpl	%esi, (%r12)
	setb	%dil
	callq	_BUG_ON
	movq	8(%r12), %rax
	movl	%r14d, %r15d
	xorl	%edi, %edi
	cmpl	$1437226410, (%rax,%r15,4)      ## imm = 0x55AA55AA
	setne	%dil
	callq	_BUG_ON
	movl	(%r12), %ebx
	andl	16(%r12), %ebx
	decl	%ebx
	xorl	%edi, %edi
	movl	%ebx, %r13d
	subl	%r14d, %r13d
	seta	%dil
	callq	_likely
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	20(%r12), %eax
	sarl	$2, %eax
	subl	%r14d, %ebx
	addl	%eax, %ebx
	movl	%ebx, %r13d
LBB0_2:
	movq	8(%r12), %rax
	movl	%r13d, (%rax,%r15,4)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_gfx_v9_0_ring_emit_patch_cond_exec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gfx_v9_0_ring_emit_patch_cond_exec
_gfx_v9_0_ring_emit_patch_cond_exec:    ; @gfx_v9_0_ring_emit_patch_cond_exec
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, w1
	cset	w0, lo
	bl	_BUG_ON
	ldr	x8, [x19, #8]
	mov	w21, w20
	ldr	w8, [x8, w20, uxtw #2]
	mov	w9, #21930
	movk	w9, #21930, lsl #16
	cmp	w8, w9
	cset	w0, ne
	bl	_BUG_ON
	ldr	w8, [x19, #16]
	ldr	w9, [x19]
	and	w8, w9, w8
	sub	w8, w8, #1
	subs	w20, w8, w20
	cset	w0, hi
	bl	_likely
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x19, #20]
	add	w20, w20, w8, asr #2
LBB0_2:
	ldr	x8, [x19, #8]
	str	w20, [x8, x21, lsl #2]
	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
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_gfx_v9_0_ring_emit_patch_cond_exec
.subsections_via_symbols
