	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kurl_open                      ## -- Begin function kurl_open
	.p2align	4, 0x90
_kurl_open:                             ## @kurl_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	$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
	leaq	L_.str(%rip), %rsi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r13
	cmpb	$0, (%rax)
	je	LBB0_6
## %bb.2:
	movl	$-1, %r12d
	cmpq	%r14, %r13
	je	LBB0_7
## %bb.3:
	movq	%r14, %rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%rbx), %edi
	callq	_isalnum
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	cmpq	%r13, %rbx
	jne	LBB0_5
	jmp	LBB0_7
LBB0_6:
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_open
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_25
LBB0_7:
	movl	$1, %edi
	movl	$40, %esi
	callq	_calloc
	movq	%rax, %r13
	movl	%r12d, (%rax)
	movq	%rax, %rdi
	callq	_kurl_isfile
	testq	%rax, %rax
	jne	LBB0_18
## %bb.8:
	xorl	%eax, %eax
	callq	_curl_multi_init
	movl	%eax, 36(%r13)
	xorl	%eax, %eax
	callq	_curl_easy_init
	movl	%eax, %ebx
	movl	%eax, 32(%r13)
	leaq	L_.str.1(%rip), %rsi
	movl	$5, %edx
	movq	%r14, %rdi
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_9
## %bb.16:
	movq	_CURLOPT_URL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_curl_easy_setopt
	jmp	LBB0_17
LBB0_9:
	testq	%r15, %r15
	je	LBB0_10
## %bb.11:
	movq	(%r15), %rdx
	movq	8(%r15), %rcx
	movq	16(%r15), %r8
	jmp	LBB0_12
LBB0_10:
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	xorl	%r8d, %r8d
LBB0_12:
	leaq	-64(%rbp), %rdi
	movq	%r14, %rsi
	callq	_s3_parse
	movq	-64(%rbp), %r14
	testq	%r14, %r14
	je	LBB0_24
## %bb.13:
	movq	-56(%rbp), %r15
	testq	%r15, %r15
	je	LBB0_24
## %bb.14:
	movq	-48(%rbp), %r12
	testq	%r12, %r12
	je	LBB0_24
## %bb.15:
	movq	8(%r13), %rdi
	movq	%r15, %rsi
	callq	_curl_slist_append
	movq	%rax, 8(%r13)
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_curl_slist_append
	movq	%rax, 8(%r13)
	movl	32(%r13), %edi
	movq	_CURLOPT_URL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_curl_easy_setopt
	movl	32(%r13), %edi
	movq	_CURLOPT_HTTPHEADER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r13), %rdx
	xorl	%eax, %eax
	callq	_curl_easy_setopt
	movq	%r15, %rdi
	callq	_free
	movq	%r12, %rdi
	callq	_free
	movq	%r14, %rdi
	callq	_free
LBB0_17:
	movl	32(%r13), %edi
	movq	_CURLOPT_WRITEDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_curl_easy_setopt
	movl	32(%r13), %edi
	movq	_CURLOPT_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_curl_easy_setopt
	movl	32(%r13), %edi
	movq	_CURLOPT_NOSIGNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_curl_easy_setopt
	movl	32(%r13), %edi
	movq	_CURLOPT_WRITEFUNCTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_write_cb@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	xorl	%eax, %eax
	callq	_curl_easy_setopt
	movl	32(%r13), %edi
	movq	_CURLOPT_SSL_VERIFYPEER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_curl_easy_setopt
	movl	32(%r13), %edi
	movq	_CURLOPT_SSL_VERIFYHOST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_curl_easy_setopt
	movl	32(%r13), %edi
	movq	_CURLOPT_FOLLOWLOCATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_curl_easy_setopt
LBB0_18:
	movq	_KU_DEF_BUFLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r13)
	movq	%r13, %rdi
	callq	_kurl_isfile
	movl	16(%r13), %edi
	testq	%rax, %rax
	jne	LBB0_21
## %bb.19:
	movq	_CURL_MAX_WRITE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	cmpl	%eax, %edi
	jge	LBB0_21
## %bb.20:
	movl	%eax, 16(%r13)
	movl	%eax, %edi
LBB0_21:
	movl	$1, %esi
	callq	_calloc
	movq	%rax, 24(%r13)
	movq	%r13, %rdi
	callq	_kurl_isfile
	testq	%rax, %rax
	jne	LBB0_23
## %bb.22:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_prepare
	testq	%rax, %rax
	js	LBB0_24
LBB0_23:
	movq	%r13, %rdi
	callq	_fill_buffer
	testq	%rax, %rax
	jg	LBB0_26
LBB0_24:
	movq	%r13, %rdi
	callq	_kurl_close
LBB0_25:
	xorl	%r13d, %r13d
LBB0_26:
	movq	%r13, %rax
	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	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.1:                               ## @.str.1
	.asciz	"s3://"

	.comm	_CURLOPT_URL,4,2                ## @CURLOPT_URL
	.comm	_CURLOPT_HTTPHEADER,4,2         ## @CURLOPT_HTTPHEADER
	.comm	_CURLOPT_WRITEDATA,4,2          ## @CURLOPT_WRITEDATA
	.comm	_CURLOPT_VERBOSE,4,2            ## @CURLOPT_VERBOSE
	.comm	_CURLOPT_NOSIGNAL,4,2           ## @CURLOPT_NOSIGNAL
	.comm	_CURLOPT_WRITEFUNCTION,4,2      ## @CURLOPT_WRITEFUNCTION
	.comm	_write_cb,8,3                   ## @write_cb
	.comm	_CURLOPT_SSL_VERIFYPEER,4,2     ## @CURLOPT_SSL_VERIFYPEER
	.comm	_CURLOPT_SSL_VERIFYHOST,4,2     ## @CURLOPT_SSL_VERIFYHOST
	.comm	_CURLOPT_FOLLOWLOCATION,4,2     ## @CURLOPT_FOLLOWLOCATION
	.comm	_KU_DEF_BUFLEN,4,2              ## @KU_DEF_BUFLEN
	.comm	_CURL_MAX_WRITE_SIZE,4,2        ## @CURL_MAX_WRITE_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kurl_open                      ; -- Begin function kurl_open
	.p2align	2
_kurl_open:                             ; @kurl_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strstr
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_7
; %bb.2:
	cmp	x19, x20
	b.eq	LBB0_6
; %bb.3:
	mov	x22, x20
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x22]
	bl	_isalnum
	cbz	w0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	cmp	x22, x19
	b.ne	LBB0_4
LBB0_6:
	mov	w22, #-1
	b	LBB0_8
LBB0_7:
Lloh2:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_open
	mov	x22, x0
	tbnz	w0, #31, LBB0_26
LBB0_8:
	mov	w0, #1
	mov	w1, #40
	bl	_calloc
	mov	x19, x0
	str	w22, [x0]
	bl	_kurl_isfile
	cbnz	x0, LBB0_19
; %bb.9:
	bl	_curl_multi_init
	str	w0, [x19, #36]
	bl	_curl_easy_init
	mov	x22, x0
	str	w0, [x19, #32]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	w2, #5
	bl	_strncmp
	cbz	w0, LBB0_11
; %bb.10:
Lloh7:
	adrp	x8, _CURLOPT_URL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CURLOPT_URL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	str	x20, [sp]
	mov	x0, x22
	bl	_curl_easy_setopt
	b	LBB0_18
LBB0_11:
	cbz	x21, LBB0_13
; %bb.12:
	ldp	x1, x2, [x21]
	ldr	x3, [x21, #16]
	b	LBB0_14
LBB0_13:
	mov	x2, #0
	mov	x1, #0
	mov	x3, #0
LBB0_14:
	add	x8, sp, #8
	mov	x0, x20
	bl	_s3_parse
	ldr	x20, [sp, #8]
	cbz	x20, LBB0_25
; %bb.15:
	ldr	x21, [sp, #16]
	cbz	x21, LBB0_25
; %bb.16:
	ldr	x22, [sp, #24]
	cbz	x22, LBB0_25
; %bb.17:
	ldr	x0, [x19, #8]
	mov	x1, x21
	bl	_curl_slist_append
	str	x0, [x19, #8]
	mov	x1, x22
	bl	_curl_slist_append
	str	x0, [x19, #8]
	ldr	w0, [x19, #32]
Lloh10:
	adrp	x8, _CURLOPT_URL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CURLOPT_URL@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	str	x20, [sp]
	bl	_curl_easy_setopt
	ldr	w0, [x19, #32]
Lloh13:
	adrp	x8, _CURLOPT_HTTPHEADER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CURLOPT_HTTPHEADER@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	x8, [x19, #8]
	str	x8, [sp]
	bl	_curl_easy_setopt
	mov	x0, x21
	bl	_free
	mov	x0, x22
	bl	_free
	mov	x0, x20
	bl	_free
LBB0_18:
	ldr	w0, [x19, #32]
Lloh16:
	adrp	x8, _CURLOPT_WRITEDATA@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CURLOPT_WRITEDATA@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	str	x19, [sp]
	bl	_curl_easy_setopt
	ldr	w0, [x19, #32]
Lloh19:
	adrp	x8, _CURLOPT_VERBOSE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CURLOPT_VERBOSE@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	str	xzr, [sp]
	bl	_curl_easy_setopt
	ldr	w0, [x19, #32]
Lloh22:
	adrp	x8, _CURLOPT_NOSIGNAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CURLOPT_NOSIGNAL@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	w20, #1
	str	x20, [sp]
	bl	_curl_easy_setopt
	ldr	w0, [x19, #32]
Lloh25:
	adrp	x8, _CURLOPT_WRITEFUNCTION@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CURLOPT_WRITEFUNCTION@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x8, _write_cb@GOTPAGE
Lloh29:
	ldr	x8, [x8, _write_cb@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	str	x8, [sp]
	bl	_curl_easy_setopt
	ldr	w0, [x19, #32]
Lloh31:
	adrp	x8, _CURLOPT_SSL_VERIFYPEER@GOTPAGE
Lloh32:
	ldr	x8, [x8, _CURLOPT_SSL_VERIFYPEER@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	str	xzr, [sp]
	bl	_curl_easy_setopt
	ldr	w0, [x19, #32]
Lloh34:
	adrp	x8, _CURLOPT_SSL_VERIFYHOST@GOTPAGE
Lloh35:
	ldr	x8, [x8, _CURLOPT_SSL_VERIFYHOST@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	str	xzr, [sp]
	bl	_curl_easy_setopt
	ldr	w0, [x19, #32]
Lloh37:
	adrp	x8, _CURLOPT_FOLLOWLOCATION@GOTPAGE
Lloh38:
	ldr	x8, [x8, _CURLOPT_FOLLOWLOCATION@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	str	x20, [sp]
	bl	_curl_easy_setopt
LBB0_19:
Lloh40:
	adrp	x8, _KU_DEF_BUFLEN@GOTPAGE
Lloh41:
	ldr	x8, [x8, _KU_DEF_BUFLEN@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	mov	x0, x19
	bl	_kurl_isfile
	mov	x8, x0
	ldr	w0, [x19, #16]
	cbnz	x8, LBB0_22
; %bb.20:
Lloh43:
	adrp	x8, _CURL_MAX_WRITE_SIZE@GOTPAGE
Lloh44:
	ldr	x8, [x8, _CURL_MAX_WRITE_SIZE@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	lsl	w8, w8, #1
	cmp	w0, w8
	b.ge	LBB0_22
; %bb.21:
	str	w8, [x19, #16]
	mov	x0, x8
LBB0_22:
	mov	w1, #1
	bl	_calloc
	str	x0, [x19, #24]
	mov	x0, x19
	bl	_kurl_isfile
	cbnz	x0, LBB0_24
; %bb.23:
	mov	x0, x19
	mov	w1, #0
	bl	_prepare
	tbnz	x0, #63, LBB0_25
LBB0_24:
	mov	x0, x19
	bl	_fill_buffer
	cmp	x0, #0
	b.gt	LBB0_27
LBB0_25:
	mov	x0, x19
	bl	_kurl_close
LBB0_26:
	mov	x19, #0
LBB0_27:
	mov	x0, x19
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"://"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.1:                               ; @.str.1
	.asciz	"s3://"

	.comm	_CURLOPT_URL,4,2                ; @CURLOPT_URL
	.comm	_CURLOPT_HTTPHEADER,4,2         ; @CURLOPT_HTTPHEADER
	.comm	_CURLOPT_WRITEDATA,4,2          ; @CURLOPT_WRITEDATA
	.comm	_CURLOPT_VERBOSE,4,2            ; @CURLOPT_VERBOSE
	.comm	_CURLOPT_NOSIGNAL,4,2           ; @CURLOPT_NOSIGNAL
	.comm	_CURLOPT_WRITEFUNCTION,4,2      ; @CURLOPT_WRITEFUNCTION
	.comm	_write_cb,8,3                   ; @write_cb
	.comm	_CURLOPT_SSL_VERIFYPEER,4,2     ; @CURLOPT_SSL_VERIFYPEER
	.comm	_CURLOPT_SSL_VERIFYHOST,4,2     ; @CURLOPT_SSL_VERIFYHOST
	.comm	_CURLOPT_FOLLOWLOCATION,4,2     ; @CURLOPT_FOLLOWLOCATION
	.comm	_KU_DEF_BUFLEN,4,2              ; @KU_DEF_BUFLEN
	.comm	_CURL_MAX_WRITE_SIZE,4,2        ; @CURL_MAX_WRITE_SIZE
.subsections_via_symbols
