	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jpeg_bound_align_image
_jpeg_bound_align_image:                ## @jpeg_bound_align_image
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r11
	movl	%r8d, %r15d
	movl	%ecx, %r8d
	movq	%rsi, %r12
	movl	16(%rbp), %r9d
	movl	32(%rbp), %r10d
	movl	(%rsi), %r14d
	movl	(%r11), %esi
	movl	$1, %eax
	movl	%r10d, %ecx
	shll	%cl, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%rdi), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rcx)
	setne	%cl
	cmpl	$2, %r15d
	sete	%al
	andb	%cl, %al
	movl	%r14d, %ecx
	andl	$3, %ecx
	cmpl	$1, %ecx
	sete	%cl
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, %ebx
	movl	%r14d, %r13d
	testb	%cl, %al
	jne	LBB0_2
## %bb.1:
	movl	24(%rbp), %ebx
	movl	%r8d, %r13d
LBB0_2:
	subq	$8, %rsp
	movq	%r12, %rdi
	movl	%edx, %esi
	movl	%r13d, %edx
	movl	%r15d, %ecx
	movq	%r11, -64(%rbp)                 ## 8-byte Spill
	movq	%r11, %r8
	pushq	$0
	pushq	%r10
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	pushq	%rbx
	callq	_v4l_bound_align_image
	addq	$32, %rsp
	movl	(%r12), %eax
	cmpl	%r14d, %eax
	jge	LBB0_5
## %bb.3:
	movl	$1, %edx
	movl	%r15d, %ecx
	shll	%cl, %edx
	addl	%edx, %eax
	cmpl	%r13d, %eax
	jae	LBB0_5
## %bb.4:
	movl	%eax, (%r12)
LBB0_5:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %eax
	cmpl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	jge	LBB0_8
## %bb.6:
	addl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	cmpl	-56(%rbp), %eax                 ## 4-byte Folded Reload
	jae	LBB0_8
## %bb.7:
	movl	%eax, (%rcx)
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_jpeg_bound_align_image
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jpeg_bound_align_image
_jpeg_bound_align_image:                ; @jpeg_bound_align_image
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x5
	mov	x22, x4
	mov	x21, x1
	ldr	w20, [x29, #16]
	ldr	w27, [x1]
	ldr	w26, [x5]
	mov	w25, #1
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cmp	w4, #2
	ccmp	x8, #0, #4, eq
	cset	w8, ne
	and	w9, w27, #0x3
	cmp	w9, #1
	cset	w9, eq
	tst	w8, w9
	csel	w23, w26, w7, ne
	csel	w24, w27, w3, ne
	str	wzr, [sp]
	mov	x0, x1
	mov	x1, x2
	mov	x2, x24
	mov	x3, x4
	mov	x4, x5
	mov	x5, x6
	mov	x6, x23
	mov	x7, x20
	bl	_v4l_bound_align_image
	ldr	w8, [x21]
	cmp	w8, w27
	b.ge	LBB0_3
; %bb.1:
	lsl	w9, w25, w22
	add	w8, w8, w9
	cmp	w8, w24
	b.hs	LBB0_3
; %bb.2:
	str	w8, [x21]
LBB0_3:
	ldr	w8, [x19]
	cmp	w8, w26
	b.ge	LBB0_6
; %bb.4:
	lsl	w9, w25, w20
	add	w8, w8, w9
	cmp	w8, w23
	b.hs	LBB0_6
; %bb.5:
	str	w8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_jpeg_bound_align_image
.subsections_via_symbols
