	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tile_width_align
_tile_width_align:                      ## @tile_width_align
	.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
	movl	%edx, %r12d
	movq	%rsi, %r14
	movl	%edi, %r15d
	movq	_IMAGE_CONVERT_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%edx, %edi
	callq	_ipu_rot_mode_is_irt
	movq	%rax, %rcx
	cmpl	%r15d, %ebx
	jne	LBB0_2
## %bb.1:
	movq	_IPU_ROT_BIT_HFLIP@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	movl	$8, %eax
	movl	$2, %edx
	cmovel	%edx, %eax
	testq	%rcx, %rcx
	cmovnel	%edx, %eax
	jmp	LBB0_6
LBB0_2:
	movl	$8, %eax
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.3:
	cmpq	$0, 8(%r14)
	je	LBB0_6
## %bb.4:
	cmpl	$0, 4(%r14)
	jne	LBB0_6
## %bb.5:
	movl	(%r14), %eax
	shll	$3, %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IMAGE_CONVERT_IN,4,2           ## @IMAGE_CONVERT_IN
	.comm	_IPU_ROT_BIT_HFLIP,4,2          ## @IPU_ROT_BIT_HFLIP
	.no_dead_strip	_tile_width_align
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tile_width_align
_tile_width_align:                      ; @tile_width_align
	.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, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _IMAGE_CONVERT_IN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IMAGE_CONVERT_IN@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	mov	x0, x2
	bl	_ipu_rot_mode_is_irt
	cmp	w22, w21
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _IPU_ROT_BIT_HFLIP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IPU_ROT_BIT_HFLIP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w20
	ccmp	x0, #0, #0, ne
	mov	w8, #2
	mov	w9, #8
	csel	w0, w9, w8, eq
	b	LBB0_6
LBB0_2:
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_7
LBB0_5:
	mov	w0, #8
LBB0_6:
	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
LBB0_7:
	ldr	w8, [x19]
	lsl	w0, w8, #3
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IMAGE_CONVERT_IN,4,2           ; @IMAGE_CONVERT_IN
	.comm	_IPU_ROT_BIT_HFLIP,4,2          ; @IPU_ROT_BIT_HFLIP
	.no_dead_strip	_tile_width_align
.subsections_via_symbols
