	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rjpeg_grow_buffer_unsafe
_rjpeg_grow_buffer_unsafe:              ## @rjpeg_grow_buffer_unsafe
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rbx), %edx
	movb	$24, %cl
	subb	%dl, %cl
	shll	%cl, %eax
	orl	%eax, 12(%rbx)
	leal	8(%rdx), %eax
	movl	%eax, (%rbx)
	cmpl	$17, %edx
	jge	LBB0_6
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	cmpl	$0, 4(%rbx)
	jne	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	16(%rbx), %edi
	callq	_rjpeg_get8
	cmpl	$255, %eax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	16(%rbx), %edi
	callq	_rjpeg_get8
	movl	%eax, %ecx
	movl	$255, %eax
	testl	%ecx, %ecx
	je	LBB0_5
## %bb.4:
	movb	%cl, 8(%rbx)
	movl	$1, 4(%rbx)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rjpeg_grow_buffer_unsafe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rjpeg_grow_buffer_unsafe
_rjpeg_grow_buffer_unsafe:              ; @rjpeg_grow_buffer_unsafe
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w20, #24
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #0
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19]
	sub	w9, w20, w8
	lsl	w9, w0, w9
	ldr	w10, [x19, #12]
	orr	w9, w9, w10
	str	w9, [x19, #12]
	add	w9, w8, #8
	str	w9, [x19]
	cmp	w8, #17
	b.ge	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19, #16]
	bl	_rjpeg_get8
	cmp	w0, #255
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19, #16]
	bl	_rjpeg_get8
	cbnz	w0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #255
	b	LBB0_2
LBB0_7:
	strb	w0, [x19, #8]
	mov	w8, #1
	str	w8, [x19, #4]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rjpeg_grow_buffer_unsafe
.subsections_via_symbols
