	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_const_upload_info
_get_const_upload_info:                 ## @get_const_upload_info
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	24(%rdi), %rax
	movl	(%rdi), %r15d
	movq	8(%rdi), %rcx
	movq	_D3DXPC_MATRIX_COLUMNS@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movq	(%rax), %rdx
	cmpq	%rsi, %rcx
	jne	LBB0_2
## %bb.1:
	movq	_D3DXPC_MATRIX_ROWS@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	cmpq	%rsi, %rdx
	sete	%dil
	xorq	%rcx, %rdx
	xorq	%rsi, %rcx
	orq	%rdx, %rcx
	sete	%cl
	orb	%dil, %cl
	movzbl	%cl, %ecx
	movl	%ecx, (%rbx)
	movl	8(%rax), %ecx
	movl	%ecx, 4(%rbx)
	addq	$12, %rax
	jmp	LBB0_3
LBB0_2:
	movq	_D3DXPC_MATRIX_ROWS@GOTPCREL(%rip), %rdi
	xorq	(%rdi), %rcx
	xorq	%rsi, %rdx
	xorl	%esi, %esi
	orq	%rdx, %rcx
	sete	%sil
	movl	%esi, (%rbx)
	movl	12(%rax), %ecx
	movl	%ecx, 4(%rbx)
	addq	$8, %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	%r15d, %edi
	callq	_get_reg_components
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.4:
	movl	16(%r14), %esi
	movl	%r15d, %edi
	callq	_get_offset_reg
	movl	8(%rbx), %esi
	xorl	%edx, %edx
	divl	%esi
	movl	%esi, %ecx
	jmp	LBB0_6
LBB0_5:
	movl	%r15d, %edi
	callq	_get_reg_components
	movl	%eax, %ecx
	movl	16(%r14), %eax
	movl	8(%rbx), %esi
	xorl	%edx, %edx
LBB0_6:
	movl	%ecx, 12(%rbx)
	movl	%eax, 16(%rbx)
	movl	%edx, 20(%rbx)
	imull	%eax, %esi
	addl	%edx, %esi
	movl	%esi, 24(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D3DXPC_MATRIX_COLUMNS,8,3      ## @D3DXPC_MATRIX_COLUMNS
	.comm	_D3DXPC_MATRIX_ROWS,8,3         ## @D3DXPC_MATRIX_ROWS
	.no_dead_strip	_get_const_upload_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_const_upload_info
_get_const_upload_info:                 ; @get_const_upload_info
	.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, x1
	mov	x20, x0
	ldr	x8, [x0, #24]
	ldr	w21, [x0]
	ldr	x9, [x0, #8]
Lloh0:
	adrp	x10, _D3DXPC_MATRIX_COLUMNS@GOTPAGE
Lloh1:
	ldr	x10, [x10, _D3DXPC_MATRIX_COLUMNS@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x10]
	ldr	x10, [x8]
	cmp	x9, x11
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x11, _D3DXPC_MATRIX_ROWS@GOTPAGE
Lloh4:
	ldr	x11, [x11, _D3DXPC_MATRIX_ROWS@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	cmp	x10, x9
	ccmp	x9, x11, #0, eq
	ccmp	x10, x11, #4, ne
	cset	w9, eq
	ldr	w10, [x8, #8]
	stp	w9, w10, [x19]
	add	x8, x8, #12
	b	LBB0_3
LBB0_2:
	cmp	x10, x11
Lloh6:
	adrp	x10, _D3DXPC_MATRIX_ROWS@GOTPAGE
Lloh7:
	ldr	x10, [x10, _D3DXPC_MATRIX_ROWS@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	ccmp	x9, x10, #0, eq
	cset	w9, eq
	ldr	w10, [x8, #12]
	stp	w9, w10, [x19]
	add	x8, x8, #8
LBB0_3:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	mov	x0, x21
	bl	_get_reg_components
	cmp	w0, #1
	b.ne	LBB0_5
; %bb.4:
	ldr	w1, [x20, #16]
	mov	x0, x21
	bl	_get_offset_reg
	ldr	w8, [x19, #8]
	udiv	w9, w0, w8
	msub	w10, w9, w8, w0
	mov	x0, x8
	b	LBB0_6
LBB0_5:
	mov	x0, x21
	bl	_get_reg_components
	mov	w10, #0
	ldr	w9, [x20, #16]
	ldr	w8, [x19, #8]
LBB0_6:
	stp	w0, w9, [x19, #12]
	madd	w8, w8, w9, w10
	stp	w10, w8, [x19, #20]
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_D3DXPC_MATRIX_COLUMNS,8,3      ; @D3DXPC_MATRIX_COLUMNS
	.comm	_D3DXPC_MATRIX_ROWS,8,3         ; @D3DXPC_MATRIX_ROWS
	.no_dead_strip	_get_const_upload_info
.subsections_via_symbols
