	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_string_fmt
_set_string_fmt:                        ## @set_string_fmt
	.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	%r8d, %r13d
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rbp), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$-1, %r14d
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.1:
	movq	%r9, %rbx
	movq	%rdx, %r15
	leaq	L_.str(%rip), %rsi
	movq	%rdx, %rdi
	callq	_strcmp
	movl	$-1, %r14d
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	movq	%r15, %rdi
	callq	*%rbx
	movl	%eax, %r14d
	cmpl	$-1, %eax
	jne	LBB0_7
## %bb.3:
	leaq	-72(%rbp), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_strtol
	movl	%eax, %r14d
	movq	-72(%rbp), %rax
	cmpb	$0, (%rax)
	jne	LBB0_5
## %bb.4:
	cmpl	%r13d, %r14d
	jae	LBB0_5
LBB0_7:
	movl	8(%r12), %edi
	movl	$-1, %esi
	callq	_FFMAX
	movl	%eax, %ebx
	movl	4(%r12), %edi
	decl	%r13d
	movl	%r13d, %esi
	callq	_FFMIN
	movl	%ebx, %ecx
	orl	%eax, %ecx
	movl	$-1, %ecx
	cmovel	%ecx, %ebx
	cmovnel	%eax, %r13d
	cmpl	%ebx, %r14d
	jl	LBB0_9
## %bb.8:
	cmpl	%r13d, %r14d
	jg	LBB0_9
## %bb.10:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %r8d
	leaq	L_.str.2(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %ecx
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	xorl	%eax, %eax
	pushq	%r13
	pushq	%rbx
	callq	_av_log
	addq	$16, %rsp
	movq	_ERANGE@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_5:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	xorl	%eax, %eax
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"none"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Unable to parse option value \"%s\" as %s\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"Value %d for parameter '%s' out of %s format range [%d - %d]\n"

	.comm	_ERANGE,4,2                     ## @ERANGE
	.no_dead_strip	_set_string_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_string_fmt
_set_string_fmt:                        ; @set_string_fmt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x20, x6
	mov	x23, x4
	mov	x22, x3
	mov	x21, x1
	mov	x19, x0
	cbz	x2, LBB0_5
; %bb.1:
	mov	x24, x5
	mov	x25, x2
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x2
	bl	_strcmp
	cbz	w0, LBB0_5
; %bb.2:
	mov	x0, x25
	blr	x24
	mov	x24, x0
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.3:
	add	x1, sp, #40
	mov	x0, x25
	mov	w2, #0
	bl	_strtol
	ldr	x8, [sp, #40]
	ldrb	w8, [x8]
	cmp	w8, #0
	ccmp	w0, w23, #2, eq
	b.lo	LBB0_10
; %bb.4:
Lloh2:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	stp	x25, x20, [sp]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	mov	w24, #-1
LBB0_6:
	ldr	w0, [x21, #8]
	mov	w1, #-1
	bl	_FFMAX
	mov	x25, x0
	ldr	w0, [x21, #4]
	sub	w23, w23, #1
	mov	x1, x23
	bl	_FFMIN
	orr	w8, w25, w0
	cmp	w8, #0
	csel	w9, w23, w0, eq
	csinv	w8, w25, wzr, ne
	cmp	w24, w8
	ccmp	w24, w9, #0, ge
	b.le	LBB0_9
; %bb.7:
Lloh9:
	adrp	x10, _AV_LOG_ERROR@GOTPAGE
Lloh10:
	ldr	x10, [x10, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x10]
	ldr	w10, [x21]
	stp	x8, x9, [sp, #24]
	stp	x10, x20, [sp, #8]
	str	x24, [sp]
Lloh12:
	adrp	x2, l_.str.2@PAGE
Lloh13:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh14:
	adrp	x8, _ERANGE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_AVERROR
LBB0_9:
	str	w24, [x22]
	mov	w0, #0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_10:
	mov	x24, x0
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"none"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Unable to parse option value \"%s\" as %s\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"Value %d for parameter '%s' out of %s format range [%d - %d]\n"

	.comm	_ERANGE,4,2                     ; @ERANGE
	.no_dead_strip	_set_string_fmt
.subsections_via_symbols
