	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TexinfoForBrushTexture         ## -- Begin function TexinfoForBrushTexture
	.p2align	4, 0x90
_TexinfoForBrushTexture:                ## @TexinfoForBrushTexture
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	40(%rsi), %rax
	cmpq	$0, (%rax)
	jne	LBB0_1
## %bb.6:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	-32(%rbp), %rdi
	movq	40(%rbx), %rsi
	callq	_strcpy
	movq	%r15, %rdi
	callq	_TextureAxisFromPlane
	movq	%r14, %rdi
	callq	_DotProduct
	movq	%r14, %rdi
	callq	_DotProduct
	movq	(%rbx), %rax
	cmpl	$0, (%rax)
	jne	LBB0_3
## %bb.2:
	movl	$1, (%rax)
LBB0_3:
	cmpl	$0, 4(%rax)
	jne	LBB0_5
## %bb.4:
	movl	$1, 4(%rax)
LBB0_5:
	movslq	8(%rbx), %rax
	imulq	$-1240768329, %rax, %rbx        ## imm = 0xB60B60B7
	shrq	$32, %rbx
	addl	%eax, %ebx
	movl	%ebx, %eax
	shrl	$31, %eax
	sarl	$7, %ebx
	addl	%eax, %ebx
	movq	_Q_PI@GOTPCREL(%rip), %rax
	imull	(%rax), %ebx
	movl	%ebx, %edi
	callq	_sin
	movl	%ebx, %edi
	callq	_cos
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_Q_PI,4,2                       ## @Q_PI
	.comm	_texinfo,8,3                    ## @texinfo
	.comm	_numtexinfo,4,2                 ## @numtexinfo
	.comm	_textureref,8,3                 ## @textureref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TexinfoForBrushTexture         ; -- Begin function TexinfoForBrushTexture
	.p2align	2
_TexinfoForBrushTexture:                ; @TexinfoForBrushTexture
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x8, [x1, #40]
	ldr	x8, [x8]
	cbnz	x8, LBB0_2
; %bb.1:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_2:
	mov	x19, x0
	add	x0, sp, #8
	mov	x21, x1
	mov	w1, #0
	mov	x20, x2
	mov	w2, #40
	bl	_memset
	ldr	x0, [sp, #40]
	ldr	x1, [x21, #40]
	bl	_strcpy
	mov	x0, x19
	bl	_TextureAxisFromPlane
	mov	x0, x20
	bl	_DotProduct
	mov	x0, x20
	bl	_DotProduct
	mov	x8, x21
	ldr	x9, [x21]
	ldr	w10, [x9]
	cbnz	w10, LBB0_4
; %bb.3:
	mov	w10, #1
	str	w10, [x9]
LBB0_4:
	ldr	w10, [x9, #4]
	cbnz	w10, LBB0_6
; %bb.5:
	mov	w10, #1
	str	w10, [x9, #4]
LBB0_6:
	ldrsw	x8, [x8, #8]
	mov	x9, #-40777
	movk	x9, #46603, lsl #16
	mul	x9, x8, x9
	lsr	x9, x9, #32
	add	w8, w9, w8
	asr	w9, w8, #7
	add	w8, w9, w8, lsr #31
Lloh0:
	adrp	x9, _Q_PI@GOTPAGE
Lloh1:
	ldr	x9, [x9, _Q_PI@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	mul	w19, w9, w8
	mov	x0, x19
	bl	_sin
	mov	x0, x19
	bl	_cos
	brk	#0x1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_Q_PI,4,2                       ; @Q_PI
	.comm	_texinfo,8,3                    ; @texinfo
	.comm	_numtexinfo,4,2                 ; @numtexinfo
	.comm	_textureref,8,3                 ; @textureref
.subsections_via_symbols
