	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdl_set_uri_credentials        ## -- Begin function sdl_set_uri_credentials
	.p2align	4, 0x90
_sdl_set_uri_credentials:               ## @sdl_set_uri_credentials
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	(%rax), %r12
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_42
## %bb.1:
	addq	$3, %rax
	movq	%rax, %rdi
	movl	$47, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, %rbx
	subq	%r12, %rbx
	jmp	LBB0_4
LBB0_3:
	movq	%r12, %rdi
	callq	_strlen
	movq	%rax, %rbx
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_42
## %bb.5:
	addq	$3, %rax
	movq	%rax, %rdi
	movl	$47, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	subq	%r15, %rax
	cmpq	%rax, %rbx
	jne	LBB0_9
	jmp	LBB0_32
LBB0_7:
	movq	%r15, %rdi
	callq	_strlen
	cmpq	%rax, %rbx
	je	LBB0_32
LBB0_9:
	cmpq	$12, %rbx
	jb	LBB0_14
## %bb.10:
	cmpb	$58, 4(%r12)
	jne	LBB0_14
## %bb.11:
	cmpb	$58, -3(%r12,%rbx)
	jne	LBB0_14
## %bb.12:
	cmpb	$56, -2(%rbx,%r12)
	jne	LBB0_14
## %bb.13:
	leaq	-3(%rbx), %rcx
	cmpb	$48, -1(%rbx,%r12)
	cmoveq	%rcx, %rbx
LBB0_14:
	cmpq	$12, %rax
	jb	LBB0_19
## %bb.15:
	cmpb	$58, 4(%r15)
	jne	LBB0_19
## %bb.16:
	cmpb	$58, -3(%r15,%rax)
	jne	LBB0_19
## %bb.17:
	cmpb	$56, -2(%rax,%r15)
	jne	LBB0_19
## %bb.18:
	leaq	-3(%rax), %rcx
	cmpb	$48, -1(%rax,%r15)
	cmoveq	%rcx, %rax
LBB0_19:
	cmpq	$14, %rbx
	jb	LBB0_25
## %bb.20:
	cmpb	$115, 4(%r12)
	jne	LBB0_25
## %bb.21:
	cmpb	$58, -4(%r12,%rbx)
	jne	LBB0_25
## %bb.22:
	cmpb	$52, -3(%rbx,%r12)
	jne	LBB0_25
## %bb.23:
	cmpb	$52, -2(%rbx,%r12)
	jne	LBB0_25
## %bb.24:
	leaq	-4(%rbx), %rcx
	cmpb	$51, -1(%rbx,%r12)
	cmoveq	%rcx, %rbx
LBB0_25:
	cmpq	$14, %rax
	jb	LBB0_31
## %bb.26:
	cmpb	$115, 4(%r15)
	jne	LBB0_31
## %bb.27:
	cmpb	$58, -4(%r15,%rax)
	jne	LBB0_31
## %bb.28:
	cmpb	$52, -3(%rax,%r15)
	jne	LBB0_31
## %bb.29:
	cmpb	$52, -2(%rax,%r15)
	jne	LBB0_31
## %bb.30:
	leaq	-4(%rax), %rcx
	cmpb	$51, -1(%rax,%r15)
	cmoveq	%rcx, %rax
LBB0_31:
	cmpq	%rax, %rbx
	jne	LBB0_33
LBB0_32:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_42
LBB0_33:
	leaq	-48(%rbp), %rbx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_php_libxml_switch_context
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_php_libxml_switch_context
	movl	-48(%rbp), %edi
	callq	_Z_TYPE
	movq	_IS_UNDEF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_42
## %bb.34:
	leaq	-48(%rbp), %rdi
	movl	$1, %esi
	callq	_php_stream_context_from_zval
	movl	%eax, (%r14)
	testl	%eax, %eax
	je	LBB0_42
## %bb.35:
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.2(%rip), %rdx
	movl	%eax, %edi
	callq	_php_stream_context_get_option
	testq	%rax, %rax
	je	LBB0_42
## %bb.36:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_Z_STRVAL_P
	leaq	L_.str.3(%rip), %rsi
	movq	%rax, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_42
## %bb.37:
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_Z_STRVAL_P
	cmpq	%rax, %r15
	je	LBB0_40
## %bb.38:
	movb	-1(%r15), %al
	cmpb	$13, %al
	je	LBB0_40
## %bb.39:
	cmpb	$10, %al
	jne	LBB0_42
LBB0_40:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_42
## %bb.41:
	movq	%rax, %r12
	addq	$2, %r12
	movq	%rbx, %rdi
	callq	_Z_STRLEN_P
	movl	%r15d, %edi
	subl	%r12d, %edi
	addl	%eax, %edi
	xorl	%esi, %esi
	callq	_zend_string_alloc
	leaq	-44(%rbp), %rdi
	movl	%eax, %esi
	callq	_ZVAL_NEW_STR
	movl	-44(%rbp), %edi
	callq	_Z_STRVAL
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_Z_STRVAL_P
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_Z_STRVAL_P
	movl	%r15d, %edx
	subl	%eax, %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_memcpy
	movl	-44(%rbp), %edi
	callq	_Z_STRVAL
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_Z_STRVAL_P
	addq	%r15, %r13
	subq	%rax, %r13
	movq	%rbx, %rdi
	callq	_Z_STRLEN_P
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_Z_STRVAL_P
	subl	%r12d, %eax
	leal	(%r15,%rax), %edx
	incl	%edx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_memcpy
	leaq	4(%r14), %rdi
	movq	%rbx, %rsi
	callq	_ZVAL_COPY
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.2(%rip), %rdx
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rcx
	callq	_php_stream_context_set_option
	movq	%rbx, %rdi
	callq	_zval_ptr_dtor
LBB0_42:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"://"

	.comm	_IS_UNDEF,8,3                   ## @IS_UNDEF
L_.str.1:                               ## @.str.1
	.asciz	"http"

L_.str.2:                               ## @.str.2
	.asciz	"header"

L_.str.3:                               ## @.str.3
	.asciz	"Authorization: Basic"

L_.str.4:                               ## @.str.4
	.asciz	"\r\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdl_set_uri_credentials        ; -- Begin function sdl_set_uri_credentials
	.p2align	2
_sdl_set_uri_credentials:               ; @sdl_set_uri_credentials
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x21, [x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_strstr
	cbz	x0, LBB0_41
; %bb.1:
	add	x0, x0, #3
	mov	w1, #47
	bl	_strchr
	cbz	x0, LBB0_3
; %bb.2:
	sub	x22, x0, x21
	b	LBB0_4
LBB0_3:
	mov	x0, x21
	bl	_strlen
	mov	x22, x0
LBB0_4:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_strstr
	cbz	x0, LBB0_41
; %bb.5:
	add	x0, x0, #3
	mov	w1, #47
	bl	_strchr
	cbz	x0, LBB0_7
; %bb.6:
	sub	x0, x0, x20
	cmp	x22, x0
	b.ne	LBB0_8
	b	LBB0_31
LBB0_7:
	mov	x0, x20
	bl	_strlen
	cmp	x22, x0
	b.eq	LBB0_31
LBB0_8:
	cmp	x22, #12
	b.lo	LBB0_13
; %bb.9:
	ldrb	w8, [x21, #4]
	cmp	w8, #58
	b.ne	LBB0_13
; %bb.10:
	sub	x8, x22, #3
	ldrb	w9, [x21, x8]
	cmp	w9, #58
	b.ne	LBB0_13
; %bb.11:
	add	x9, x22, x21
	ldurb	w10, [x9, #-2]
	cmp	w10, #56
	b.ne	LBB0_13
; %bb.12:
	ldurb	w9, [x9, #-1]
	cmp	w9, #48
	csel	x22, x8, x22, eq
LBB0_13:
	cmp	x0, #12
	b.lo	LBB0_18
; %bb.14:
	ldrb	w8, [x20, #4]
	cmp	w8, #58
	b.ne	LBB0_18
; %bb.15:
	sub	x8, x0, #3
	ldrb	w9, [x20, x8]
	cmp	w9, #58
	b.ne	LBB0_18
; %bb.16:
	add	x9, x0, x20
	ldurb	w10, [x9, #-2]
	cmp	w10, #56
	b.ne	LBB0_18
; %bb.17:
	ldurb	w9, [x9, #-1]
	cmp	w9, #48
	csel	x0, x8, x0, eq
LBB0_18:
	cmp	x22, #14
	b.lo	LBB0_24
; %bb.19:
	ldrb	w8, [x21, #4]
	cmp	w8, #115
	b.ne	LBB0_24
; %bb.20:
	sub	x8, x22, #4
	ldrb	w9, [x21, x8]
	cmp	w9, #58
	b.ne	LBB0_24
; %bb.21:
	add	x9, x22, x21
	ldurb	w10, [x9, #-3]
	cmp	w10, #52
	b.ne	LBB0_24
; %bb.22:
	ldurb	w9, [x9, #-2]
	cmp	w9, #52
	b.ne	LBB0_24
; %bb.23:
	add	x9, x22, x21
	ldurb	w9, [x9, #-1]
	cmp	w9, #51
	csel	x22, x8, x22, eq
LBB0_24:
	cmp	x0, #14
	b.lo	LBB0_30
; %bb.25:
	ldrb	w8, [x20, #4]
	cmp	w8, #115
	b.ne	LBB0_30
; %bb.26:
	sub	x8, x0, #4
	ldrb	w9, [x20, x8]
	cmp	w9, #58
	b.ne	LBB0_30
; %bb.27:
	add	x9, x0, x20
	ldurb	w10, [x9, #-3]
	cmp	w10, #52
	b.ne	LBB0_30
; %bb.28:
	ldurb	w9, [x9, #-2]
	cmp	w9, #52
	b.ne	LBB0_30
; %bb.29:
	add	x9, x0, x20
	ldurb	w9, [x9, #-1]
	cmp	w9, #51
	csel	x0, x8, x0, eq
LBB0_30:
	cmp	x22, x0
	b.ne	LBB0_32
LBB0_31:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_memcmp
	cbz	x0, LBB0_41
LBB0_32:
	add	x1, sp, #12
	mov	x0, #0
	bl	_php_libxml_switch_context
	add	x0, sp, #12
	mov	x1, #0
	bl	_php_libxml_switch_context
	ldr	w0, [sp, #12]
	bl	_Z_TYPE
Lloh4:
	adrp	x8, _IS_UNDEF@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IS_UNDEF@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_41
; %bb.33:
	add	x0, sp, #12
	mov	w1, #1
	bl	_php_stream_context_from_zval
	str	w0, [x19]
	cbz	w0, LBB0_41
; %bb.34:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh9:
	adrp	x2, l_.str.2@PAGE
Lloh10:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_php_stream_context_get_option
	cbz	x0, LBB0_41
; %bb.35:
	mov	x20, x0
	bl	_Z_STRVAL_P
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strstr
	cbz	x0, LBB0_41
; %bb.36:
	mov	x21, x0
	mov	x0, x20
	bl	_Z_STRVAL_P
	cmp	x21, x0
	b.eq	LBB0_39
; %bb.37:
	ldurb	w8, [x21, #-1]
	cmp	w8, #13
	b.eq	LBB0_39
; %bb.38:
	cmp	w8, #10
	b.ne	LBB0_41
LBB0_39:
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_strstr
	cbz	x0, LBB0_41
; %bb.40:
	add	x22, x0, #2
	mov	x0, x20
	bl	_Z_STRLEN_P
	sub	w8, w21, w22
	add	w0, w0, w8
	mov	w1, #0
	bl	_zend_string_alloc
	mov	x1, x0
	add	x0, sp, #8
	bl	_ZVAL_NEW_STR
	ldr	w0, [sp, #8]
	bl	_Z_STRVAL
	mov	x23, x0
	mov	x0, x20
	bl	_Z_STRVAL_P
	mov	x24, x0
	mov	x0, x20
	bl	_Z_STRVAL_P
	sub	w2, w21, w0
	mov	x0, x23
	mov	x1, x24
	bl	_memcpy
	ldr	w0, [sp, #8]
	bl	_Z_STRVAL
	mov	x23, x0
	mov	x0, x20
	bl	_Z_STRVAL_P
	add	x8, x23, x21
	sub	x21, x8, x0
	mov	x0, x20
	bl	_Z_STRLEN_P
	mov	x23, x0
	mov	x0, x20
	bl	_Z_STRVAL_P
	sub	w8, w0, w22
	add	w8, w23, w8
	add	w2, w8, #1
	mov	x0, x21
	mov	x1, x22
	bl	_memcpy
	add	x0, x19, #4
	mov	x1, x20
	bl	_ZVAL_COPY
	ldr	w0, [x19]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh17:
	adrp	x2, l_.str.2@PAGE
Lloh18:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x3, sp, #8
	bl	_php_stream_context_set_option
	add	x0, sp, #8
	bl	_zval_ptr_dtor
LBB0_41:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"://"

	.comm	_IS_UNDEF,8,3                   ; @IS_UNDEF
l_.str.1:                               ; @.str.1
	.asciz	"http"

l_.str.2:                               ; @.str.2
	.asciz	"header"

l_.str.3:                               ; @.str.3
	.asciz	"Authorization: Basic"

l_.str.4:                               ; @.str.4
	.asciz	"\r\n"

.subsections_via_symbols
