	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ijksegment_open
_ijksegment_open:                       ## @ijksegment_open
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, %ebx
	movq	%rsi, %rax
	movq	%rdi, %r12
	movq	%rsi, -48(%rbp)
	movq	16(%rdi), %r14
	xorps	%xmm0, %xmm0
	movups	%xmm0, -80(%rbp)
	movslq	(%r14), %r15
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%rax, %rdi
	callq	_av_strstart
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	cmpb	$0, (%rdi)
	je	LBB0_5
## %bb.2:
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strtol
	movq	%rax, %r13
	movl	$24, -88(%rbp)
	movl	%r13d, -84(%rbp)
	movq	-48(%rbp), %rsi
	xorl	%edi, %edi
	movl	$8, %edx
	callq	_strlcpy
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.3:
	testl	%r13d, %r13d
	jns	LBB0_6
## %bb.4:
	movq	_AVERROR_EXTERNAL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	movq	_AVERROR_EXTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_10
LBB0_6:
	movq	_AVAPP_CTRL_WILL_CONCAT_SEGMENT_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-88(%rbp), %rdx
	movq	%r15, %rdi
	callq	_av_application_on_io_control
	testl	%eax, %eax
	je	LBB0_11
LBB0_7:
	movq	_AVERROR_EXIT@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
LBB0_9:
	movl	%eax, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	-80(%rbp), %rax
	cmpl	$0, (%rax)
	je	LBB0_7
## %bb.12:
	movl	(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_av_dict_set_int
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	%r13d, %edx
	xorl	%ecx, %ecx
	callq	_av_dict_set_int
	addq	$4, %r14
	movq	-80(%rbp), %rsi
	leaq	8(%r12), %rcx
	movl	(%r12), %eax
	movl	4(%r12), %r9d
	movq	%r14, %rdi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	%r15, %r8
	pushq	%r12
	pushq	%rax
	callq	_ffurl_open_whitelist
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ijksegment:"

	.comm	_AVERROR_EXTERNAL,4,2           ## @AVERROR_EXTERNAL
	.comm	_AVAPP_CTRL_WILL_CONCAT_SEGMENT_OPEN,4,2 ## @AVAPP_CTRL_WILL_CONCAT_SEGMENT_OPEN
	.comm	_AVERROR_EXIT,4,2               ## @AVERROR_EXIT
L_.str.1:                               ## @.str.1
	.asciz	"ijkapplication"

L_.str.2:                               ## @.str.2
	.asciz	"ijkinject-segment-index"

	.no_dead_strip	_ijksegment_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ijksegment_open
_ijksegment_open:                       ; @ijksegment_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x8, x1
	mov	x19, x0
	stp	xzr, x1, [sp, #16]
	ldr	x22, [x0, #16]
	str	xzr, [sp, #8]
	ldrsw	x23, [x22]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #24
	mov	x0, x8
	bl	_av_strstart
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_4
; %bb.1:
	ldrb	w8, [x0]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x1, #0
	mov	w2, #0
	bl	_strtol
	mov	x24, x0
	mov	w8, #24
	stp	w8, w24, [sp]
	ldr	x1, [sp, #24]
	mov	x0, #0
	mov	w2, #8
	bl	_strlcpy
	cbz	w23, LBB0_7
; %bb.3:
	tbz	w24, #31, LBB0_7
LBB0_4:
Lloh2:
	adrp	x8, _AVERROR_EXTERNAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVERROR_EXTERNAL@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
Lloh4:
	adrp	x8, _AVAPP_CTRL_WILL_CONCAT_SEGMENT_OPEN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AVAPP_CTRL_WILL_CONCAT_SEGMENT_OPEN@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x23
	bl	_av_application_on_io_control
	cbz	w0, LBB0_9
LBB0_8:
Lloh7:
	adrp	x8, _AVERROR_EXIT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AVERROR_EXIT@GOTPAGEOFF]
	b	LBB0_5
LBB0_9:
	ldr	x8, [sp, #8]
	ldr	w8, [x8]
	cbz	w8, LBB0_8
; %bb.10:
	ldr	w2, [x22], #4
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	w3, #0
	bl	_av_dict_set_int
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x24
	mov	w3, #0
	bl	_av_dict_set_int
	ldr	x1, [sp, #8]
	add	x3, x19, #8
	ldp	w6, w5, [x19]
	mov	x0, x22
	mov	x2, x21
	mov	x4, x20
	mov	x7, x19
	bl	_ffurl_open_whitelist
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ijksegment:"

	.comm	_AVERROR_EXTERNAL,4,2           ; @AVERROR_EXTERNAL
	.comm	_AVAPP_CTRL_WILL_CONCAT_SEGMENT_OPEN,4,2 ; @AVAPP_CTRL_WILL_CONCAT_SEGMENT_OPEN
	.comm	_AVERROR_EXIT,4,2               ; @AVERROR_EXIT
l_.str.1:                               ; @.str.1
	.asciz	"ijkapplication"

l_.str.2:                               ; @.str.2
	.asciz	"ijkinject-segment-index"

	.no_dead_strip	_ijksegment_open
.subsections_via_symbols
