	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_same_origin
_test_same_origin:                      ## @test_same_origin
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$1184, %rsp                     ## imm = 0x4A0
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movl	$-1, -1192(%rbp)
	movl	$-1, -1188(%rbp)
	leaq	-1192(%rbp), %rax
	leaq	-96(%rbp), %rdi
	leaq	-416(%rbp), %rdx
	leaq	-928(%rbp), %r8
	movl	$64, %esi
	movl	$256, %ecx                      ## imm = 0x100
	movl	$256, %r9d                      ## imm = 0x100
	pushq	%rbx
	pushq	$0
	pushq	$0
	pushq	%rax
	callq	_av_url_split
	addq	$32, %rsp
	leaq	-1188(%rbp), %rax
	leaq	-160(%rbp), %rdi
	leaq	-672(%rbp), %rdx
	leaq	-1184(%rbp), %r8
	movl	$64, %esi
	movl	$256, %ecx                      ## imm = 0x100
	movl	$256, %r9d                      ## imm = 0x100
	pushq	%r14
	pushq	$0
	pushq	$0
	pushq	%rax
	callq	_av_url_split
	addq	$32, %rsp
	movq	%rbx, %rdi
	callq	_strlen
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	-416(%rbp), %rdi
	callq	_strlen
	addl	$-255, %eax
	xorl	%ebx, %ebx
	cmpl	$-256, %eax
	jb	LBB0_10
## %bb.3:
	leaq	-672(%rbp), %rdi
	callq	_strlen
	addl	$-255, %eax
	cmpl	$-256, %eax
	jb	LBB0_10
## %bb.4:
	leaq	-928(%rbp), %rdi
	callq	_strlen
	addl	$-255, %eax
	cmpl	$-256, %eax
	jb	LBB0_10
## %bb.5:
	leaq	-1184(%rbp), %rdi
	callq	_strlen
	addl	$-255, %eax
	cmpl	$-256, %eax
	jb	LBB0_10
## %bb.6:
	leaq	-96(%rbp), %rdi
	leaq	-160(%rbp), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_10
## %bb.7:
	leaq	-416(%rbp), %rdi
	leaq	-672(%rbp), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:
	leaq	-928(%rbp), %rdi
	leaq	-1184(%rbp), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movl	-1192(%rbp), %eax
	xorl	%ebx, %ebx
	cmpl	-1188(%rbp), %eax
	sete	%bl
	jmp	LBB0_10
LBB0_1:
	movl	$-1, %ebx
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%ebx, %eax
	addq	$1184, %rsp                     ## imm = 0x4A0
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_test_same_origin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_same_origin
_test_same_origin:                      ; @test_same_origin
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	sub	sp, sp, #1184
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	mov	w19, #-1
	stp	w19, w19, [sp, #16]
	str	x0, [sp, #8]
	str	wzr, [sp]
	sub	x0, x29, #104
	add	x2, sp, #792
	add	x4, sp, #280
	add	x6, sp, #20
	mov	w1, #64
	mov	w3, #256
	mov	x7, #0
	mov	w5, #256
	bl	_av_url_split
	str	x20, [sp, #8]
	str	wzr, [sp]
	sub	x0, x29, #168
	add	x2, sp, #536
	add	x4, sp, #24
	add	x6, sp, #16
	mov	w1, #64
	mov	w3, #256
	mov	x7, #0
	mov	w5, #256
	bl	_av_url_split
	mov	x0, x21
	bl	_strlen
	cbz	w0, LBB0_9
; %bb.1:
	add	x0, sp, #792
	bl	_strlen
	sub	w8, w0, #255
	cmn	w8, #256
	b.lo	LBB0_8
; %bb.2:
	add	x0, sp, #536
	bl	_strlen
	sub	w8, w0, #255
	cmn	w8, #256
	b.lo	LBB0_8
; %bb.3:
	add	x0, sp, #280
	bl	_strlen
	sub	w8, w0, #255
	cmn	w8, #256
	b.lo	LBB0_8
; %bb.4:
	add	x0, sp, #24
	bl	_strlen
	sub	w8, w0, #255
	cmn	w8, #256
	b.lo	LBB0_8
; %bb.5:
	sub	x0, x29, #104
	sub	x1, x29, #168
	bl	_strcmp
	cbnz	x0, LBB0_8
; %bb.6:
	add	x0, sp, #792
	add	x1, sp, #536
	bl	_strcmp
	cbnz	x0, LBB0_8
; %bb.7:
	add	x0, sp, #280
	add	x1, sp, #24
	bl	_strcmp
	cbz	x0, LBB0_11
LBB0_8:
	mov	w19, #0
LBB0_9:
	ldur	x8, [x29, #-40]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.10:
	mov	x0, x19
	add	sp, sp, #1184
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_11:
	ldp	w9, w8, [sp, #16]
	cmp	w8, w9
	cset	w19, eq
	b	LBB0_9
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_test_same_origin
.subsections_via_symbols
