	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sm_2_opcode
_sm_2_opcode:                           ## @sm_2_opcode
	.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	%rcx, %r14
	movl	%edx, %r12d
	movq	%rsi, %r15
	xorl	%edx, %edx
	cmpq	$0, 24(%rsi)
	setne	%dl
	movl	16(%rsi), %esi
	movq	%r15, %rdi
	callq	_instrlen
	movl	%eax, %ebx
	movq	_D3DSI_INSTLENGTH_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	orl	%r12d, %ebx
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_d3d9_comparetype
	andl	$15, %eax
	shll	$16, %eax
	orl	%eax, %ebx
LBB0_2:
	xorl	%esi, %esi
	cmpq	$0, (%r15)
	je	LBB0_4
## %bb.3:
	movq	_D3DSHADER_INSTRUCTION_PREDICATED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_4:
	orl	%ebx, %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_put_dword                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_D3DSI_INSTLENGTH_SHIFT,4,2     ## @D3DSI_INSTLENGTH_SHIFT
	.comm	_D3DSHADER_INSTRUCTION_PREDICATED,4,2 ## @D3DSHADER_INSTRUCTION_PREDICATED
	.no_dead_strip	_sm_2_opcode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sm_2_opcode
_sm_2_opcode:                           ; @sm_2_opcode
	.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, x3
	mov	x21, x2
	mov	x20, x1
	ldr	x8, [x1, #24]
	cmp	x8, #0
	cset	w2, ne
	ldr	w1, [x1, #16]
	mov	x0, x20
	bl	_instrlen
Lloh0:
	adrp	x8, _D3DSI_INSTLENGTH_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D3DSI_INSTLENGTH_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w8, w0, w8
	orr	w21, w8, w21
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_d3d9_comparetype
	ubfiz	w8, w0, #16, #4
	orr	w21, w8, w21
LBB0_2:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _D3DSHADER_INSTRUCTION_PREDICATED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _D3DSHADER_INSTRUCTION_PREDICATED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w8, wzr, w9, eq
	orr	w1, w8, w21
	mov	x0, x19
	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	_put_dword
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_D3DSI_INSTLENGTH_SHIFT,4,2     ; @D3DSI_INSTLENGTH_SHIFT
	.comm	_D3DSHADER_INSTRUCTION_PREDICATED,4,2 ; @D3DSHADER_INSTRUCTION_PREDICATED
	.no_dead_strip	_sm_2_opcode
.subsections_via_symbols
