	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_branch
_check_branch:                          ## @check_branch
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%edi, %ebx
	movq	_QPU_BRANCH_TARGET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_QPU_GET_FIELD
	movq	%rax, %r12
	movq	_QPU_WADDR_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_QPU_GET_FIELD
	movq	%rax, %r15
	movq	_QPU_WADDR_MUL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_QPU_GET_FIELD
	testl	$-2147483648, %r12d             ## imm = 0x80000000
	je	LBB0_2
## %bb.1:
	movl	$1, (%r14)
LBB0_2:
	movq	_QPU_W_NOP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	cmpq	%r15, %rdx
	jne	LBB0_4
## %bb.3:
	movl	$1, %ecx
	cmpq	%rax, %rdx
	je	LBB0_5
LBB0_4:
	movl	4(%r14), %esi
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	xorl	%ecx, %ecx
LBB0_5:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QPU_BRANCH_TARGET,4,2          ## @QPU_BRANCH_TARGET
	.comm	_QPU_WADDR_ADD,4,2              ## @QPU_WADDR_ADD
	.comm	_QPU_WADDR_MUL,4,2              ## @QPU_WADDR_MUL
	.comm	_QPU_W_NOP,8,3                  ## @QPU_W_NOP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"branch instruction at %d wrote a register.\n"

	.no_dead_strip	_check_branch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_branch
_check_branch:                          ; @check_branch
	.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	x19, x2
	mov	x21, x0
Lloh0:
	adrp	x8, _QPU_BRANCH_TARGET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QPU_BRANCH_TARGET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_QPU_GET_FIELD
	mov	x22, x0
Lloh3:
	adrp	x8, _QPU_WADDR_ADD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QPU_WADDR_ADD@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_QPU_GET_FIELD
	mov	x20, x0
Lloh6:
	adrp	x8, _QPU_WADDR_MUL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QPU_WADDR_MUL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_QPU_GET_FIELD
	tbz	w22, #31, LBB0_2
; %bb.1:
	mov	w8, #1
	str	w8, [x19]
LBB0_2:
Lloh9:
	adrp	x8, _QPU_W_NOP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QPU_W_NOP@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x8, x20
	ccmp	x8, x0, #0, eq
	b.eq	LBB0_4
; %bb.3:
	ldr	w1, [x19, #4]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	mov	w0, #1
LBB0_5:
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_QPU_BRANCH_TARGET,4,2          ; @QPU_BRANCH_TARGET
	.comm	_QPU_WADDR_ADD,4,2              ; @QPU_WADDR_ADD
	.comm	_QPU_WADDR_MUL,4,2              ; @QPU_WADDR_MUL
	.comm	_QPU_W_NOP,8,3                  ; @QPU_W_NOP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"branch instruction at %d wrote a register.\n"

	.no_dead_strip	_check_branch
.subsections_via_symbols
