	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l_bound_align_image          ## -- Begin function v4l_bound_align_image
	.p2align	4, 0x90
_v4l_bound_align_image:                 ## @v4l_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movq	%r8, %r12
	movl	%edx, %r13d
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %r14
	movl	16(%rbp), %ebx
	movl	(%rdi), %edi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_clamp_align
	movl	%eax, (%r14)
	movl	(%r12), %edi
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	24(%rbp), %ecx
	callq	_clamp_align
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	%eax, (%r12)
	movl	32(%rbp), %ebx
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.1:
	movq	%r14, %r12
	movl	(%r14), %edi
	callq	___ffs
	movl	%eax, %r14d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	___ffs
	movl	%eax, %r15d
	leal	(%r15,%r14), %eax
	cmpl	%ebx, %eax
	jae	LBB0_9
## %bb.2:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leal	-1(%rax), %edi
	xorl	%r13d, %edi
	callq	___fls
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	-1(%rax), %edi
	xorl	16(%rbp), %edi
	callq	___fls
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r12), %edi
	incl	%r14d
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r13d, %edx
	movl	%r14d, %ecx
	callq	_clamp_align
	movl	%eax, (%r12)
	movl	%eax, %edi
	callq	___ffs
	movl	%eax, %r14d
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	leal	(%r14,%r15), %eax
	cmpl	%ebx, %eax
	jae	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	-48(%rbp), %r15d                ## 4-byte Folded Reload
	jae	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r15d, %r14d
	ja	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	-44(%rbp), %r14d                ## 4-byte Folded Reload
	jb	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, %r12d
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movl	(%r13), %edi
	incl	%r15d
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	16(%rbp), %edx
	movl	%r15d, %ecx
	callq	_clamp_align
	movl	%eax, (%r13)
	movl	%r12d, %r13d
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movl	%eax, %edi
	callq	___ffs
	movl	%eax, %r15d
	jmp	LBB0_8
LBB0_9:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l_bound_align_image          ; -- Begin function v4l_bound_align_image
	.p2align	2
_v4l_bound_align_image:                 ; @v4l_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	x25, x7
	mov	x26, x6
	mov	x20, x5
	mov	x21, x4
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	ldr	w19, [x29, #16]
	ldr	w0, [x0]
	bl	_clamp_align
	str	w0, [x24]
	ldr	w0, [x21]
	mov	x1, x20
	str	w26, [sp, #12]                  ; 4-byte Folded Spill
	mov	x2, x26
	mov	x3, x25
	bl	_clamp_align
	str	w0, [x21]
	cbz	w19, LBB0_9
; %bb.1:
	ldr	w0, [x24]
	bl	___ffs
	mov	x25, x0
	ldr	w0, [x21]
	bl	___ffs
	add	w8, w0, w25
	cmp	w8, w19
	b.hs	LBB0_9
; %bb.2:
	mov	x27, x0
	sub	w8, w23, #1
	eor	w0, w8, w22
	bl	___fls
	mov	x26, x0
	sub	w8, w20, #1
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	eor	w0, w8, w9
	bl	___fls
	mov	x28, x0
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x24]
	add	w3, w25, #1
	mov	x1, x23
	mov	x2, x22
	bl	_clamp_align
	str	w0, [x24]
	bl	___ffs
	mov	x25, x0
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w25, w27
	cmp	w8, w19
	b.hs	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w27, w28
	b.hs	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w25, w27
	b.hi	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w25, w26
	b.lo	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x21]
	add	w3, w27, #1
	mov	x1, x20
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	bl	_clamp_align
	str	w0, [x21]
	bl	___ffs
	mov	x27, x0
	b	LBB0_4
LBB0_9:
	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
.subsections_via_symbols
