	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function http_get_file
_http_get_file:                         ## @http_get_file
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-40(%rbp), %rdi
	movq	%r14, %rdx
	callq	_strbuf_addf
	movl	-40(%rbp), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_HTTP_REQUEST_FILE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rcx
	callq	_http_request_reauth
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_fclose
	movq	_HTTP_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_5
## %bb.3:
	movl	-40(%rbp), %edi
	movq	%r14, %rsi
	callq	_finalize_object_file
	testq	%rax, %rax
	jne	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movl	-40(%rbp), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_error
LBB0_4:
	movq	_HTTP_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_5:
	leaq	-40(%rbp), %rdi
	callq	_strbuf_release
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s.temp"

L_.str.1:                               ## @.str.1
	.asciz	"a"

L_.str.2:                               ## @.str.2
	.asciz	"Unable to open local file %s"

	.comm	_HTTP_ERROR,4,2                 ## @HTTP_ERROR
	.comm	_HTTP_REQUEST_FILE,4,2          ## @HTTP_REQUEST_FILE
	.comm	_HTTP_OK,4,2                    ## @HTTP_OK
	.no_dead_strip	_http_get_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function http_get_file
_http_get_file:                         ; @http_get_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	x2, x19
	bl	_strbuf_addf
	ldr	w0, [sp, #8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
Lloh7:
	adrp	x8, _HTTP_REQUEST_FILE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HTTP_REQUEST_FILE@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x22
	mov	x3, x20
	bl	_http_request_reauth
	mov	x20, x0
	mov	x0, x22
	bl	_fclose
Lloh10:
	adrp	x8, _HTTP_OK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HTTP_OK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ne	LBB0_4
; %bb.2:
	ldr	w0, [sp, #8]
	mov	x1, x19
	bl	_finalize_object_file
Lloh13:
	adrp	x8, _HTTP_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HTTP_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w20, w20, w8, eq
	b	LBB0_4
LBB0_3:
	ldr	w1, [sp, #8]
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_error
Lloh18:
	adrp	x8, _HTTP_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HTTP_ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w20, [x8]
LBB0_4:
	add	x0, sp, #8
	bl	_strbuf_release
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s.temp"

l_.str.1:                               ; @.str.1
	.asciz	"a"

l_.str.2:                               ; @.str.2
	.asciz	"Unable to open local file %s"

	.comm	_HTTP_ERROR,4,2                 ; @HTTP_ERROR
	.comm	_HTTP_REQUEST_FILE,4,2          ; @HTTP_REQUEST_FILE
	.comm	_HTTP_OK,4,2                    ; @HTTP_OK
	.no_dead_strip	_http_get_file
.subsections_via_symbols
