	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpjpeg_get_boundary
_mpjpeg_get_boundary:                   ## @mpjpeg_get_boundary
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -48(%rbp)
	movq	_AV_OPT_SEARCH_CHILDREN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rcx
	callq	_av_opt_get
	movq	-48(%rbp), %rbx
	movq	%rbx, -40(%rbp)
	xorl	%r14d, %r14d
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.1:
	leaq	L_.str.1(%rip), %r15
	leaq	-40(%rbp), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	cmpb	$0, (%rbx)
	je	LBB0_16
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movl	$59, %esi
	callq	_strchr
	movq	%rax, -40(%rbp)
	testq	%rax, %rax
	je	LBB0_16
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rcx
	incq	%rcx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rcx, -40(%rbp)
	movsbl	1(%rax), %edi
	callq	_av_isspace
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	-40(%rbp), %rax
	leaq	1(%rax), %rcx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-40(%rbp), %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_av_stristart
	movq	-40(%rbp), %rbx
	testq	%rax, %rax
	jne	LBB0_8
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	testq	%rbx, %rbx
	jne	LBB0_2
	jmp	LBB0_16
LBB0_8:
	movq	%rbx, %rdi
	movl	$59, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	notl	%ebx
	addl	%ebx, %eax
	jmp	LBB0_11
LBB0_10:
	movq	%rbx, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
LBB0_11:
	movq	-40(%rbp), %rdi
	cmpl	$3, %eax
	jl	LBB0_15
## %bb.12:
	cmpb	$34, (%rdi)
	jne	LBB0_15
## %bb.13:
	leal	-1(%rax), %ecx
	cmpb	$34, (%rdi,%rcx)
	jne	LBB0_15
## %bb.14:
	incq	%rdi
	movq	%rdi, -40(%rbp)
	addl	$-2, %eax
LBB0_15:
	movl	%eax, %esi
	callq	_av_strndup
	movq	%rax, %r14
LBB0_16:
	leaq	-48(%rbp), %rdi
	callq	_av_freep
	movq	%r14, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mime_type"

	.comm	_AV_OPT_SEARCH_CHILDREN,4,2     ## @AV_OPT_SEARCH_CHILDREN
L_.str.1:                               ## @.str.1
	.asciz	"boundary="

	.no_dead_strip	_mpjpeg_get_boundary
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpjpeg_get_boundary
_mpjpeg_get_boundary:                   ; @mpjpeg_get_boundary
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _AV_OPT_SEARCH_CHILDREN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_OPT_SEARCH_CHILDREN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x3, sp, #8
	bl	_av_opt_get
	ldr	x20, [sp, #8]
	str	x20, [sp]
	cbz	x20, LBB0_8
; %bb.1:
Lloh5:
	adrp	x19, l_.str.1@PAGE
Lloh6:
	add	x19, x19, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldrb	w8, [x20]
	cbz	w8, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	mov	w1, #59
	bl	_strchr
	str	x0, [sp]
	cbz	x0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x0, #1
	str	x8, [sp]
	ldrsb	w0, [x0, #1]
	bl	_av_isspace
	cbz	x0, LBB0_6
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [sp]
	add	x9, x8, #1
	str	x9, [sp]
	ldrsb	w0, [x8, #1]
	bl	_av_isspace
	cbnz	x0, LBB0_5
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [sp]
	mov	x2, sp
	mov	x1, x19
	bl	_av_stristart
	ldr	x20, [sp]
	cbnz	x0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	cbnz	x20, LBB0_2
LBB0_8:
	mov	x19, #0
LBB0_9:
	add	x0, sp, #8
	bl	_av_freep
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_10:
	mov	x0, x20
	mov	w1, #59
	bl	_strchr
	cbz	x0, LBB0_12
; %bb.11:
	mvn	w8, w20
	add	w1, w0, w8
	b	LBB0_13
LBB0_12:
	mov	x0, x20
	bl	_strlen
	mov	x1, x0
LBB0_13:
	ldr	x0, [sp]
	cmp	w1, #3
	b.lt	LBB0_17
; %bb.14:
	ldrb	w8, [x0]
	cmp	w8, #34
	b.ne	LBB0_17
; %bb.15:
	sub	w8, w1, #1
	ldrb	w8, [x0, w8, uxtw]
	cmp	w8, #34
	b.ne	LBB0_17
; %bb.16:
	add	x0, x0, #1
	str	x0, [sp]
	sub	w1, w1, #2
LBB0_17:
	bl	_av_strndup
	mov	x19, x0
	b	LBB0_9
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mime_type"

	.comm	_AV_OPT_SEARCH_CHILDREN,4,2     ; @AV_OPT_SEARCH_CHILDREN
l_.str.1:                               ; @.str.1
	.asciz	"boundary="

	.no_dead_strip	_mpjpeg_get_boundary
.subsections_via_symbols
