	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function http_request_reauth
_http_request_reauth:                   ## @http_request_reauth
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_http_request
	movl	%eax, %ebx
	movq	_HTTP_OK@GOTPCREL(%rip), %rax
	movq	_HTTP_REAUTH@GOTPCREL(%rip), %rcx
	cmpl	(%rax), %ebx
	je	LBB0_2
## %bb.1:
	cmpl	(%rcx), %ebx
	jne	LBB0_14
LBB0_2:
	testq	%r13, %r13
	je	LBB0_7
## %bb.3:
	movq	(%r13), %rdx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.4:
	movq	8(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.5:
	movq	%r12, %rsi
	callq	_update_url_from_redirect
	movq	_HTTP_REAUTH@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	8(%r13), %rax
	movl	(%rax), %esi
	movq	_http_auth@GOTPCREL(%rip), %rdi
	callq	_credential_from_url
	movq	_HTTP_REAUTH@GOTPCREL(%rip), %rcx
	movq	(%r13), %rax
	movq	(%rax), %r12
LBB0_7:
	cmpl	(%rcx), %ebx
	jne	LBB0_14
## %bb.8:
	cmpl	$129, %r14d
	je	LBB0_11
## %bb.9:
	cmpl	$128, %r14d
	jne	LBB0_17
## %bb.10:
	movq	%r15, %rdi
	callq	_strbuf_reset
	jmp	LBB0_18
LBB0_11:
	movq	%r15, %rdi
	callq	_fflush
	testl	%eax, %eax
	je	LBB0_15
## %bb.12:
	leaq	L_.str(%rip), %rdi
LBB0_13:
	callq	_error_errno
	movq	_HTTP_START_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	leaq	L_.str.2(%rip), %rdi
	callq	_BUG
LBB0_18:
	movq	_http_auth@GOTPCREL(%rip), %rdi
	callq	_credential_fill
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	movq	%r13, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_http_request                   ## TAILCALL
LBB0_15:
	movq	%r15, %rdi
	callq	_rewind
	movq	%r15, %rdi
	callq	_fileno
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_ftruncate
	testl	%eax, %eax
	jns	LBB0_18
## %bb.16:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_HTTP_OK,4,2                    ## @HTTP_OK
	.comm	_HTTP_REAUTH,4,2                ## @HTTP_REAUTH
	.comm	_http_auth,4,2                  ## @http_auth
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to flush a file"

	.comm	_HTTP_START_FAILED,4,2          ## @HTTP_START_FAILED
L_.str.1:                               ## @.str.1
	.asciz	"unable to truncate a file"

L_.str.2:                               ## @.str.2
	.asciz	"Unknown http_request target"

	.no_dead_strip	_http_request_reauth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function http_request_reauth
_http_request_reauth:                   ; @http_request_reauth
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_http_request
	mov	x23, x0
Lloh0:
	adrp	x8, _HTTP_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HTTP_OK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x24, _HTTP_REAUTH@GOTPAGE
Lloh4:
	ldr	x24, [x24, _HTTP_REAUTH@GOTPAGEOFF]
	ldr	w9, [x24]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.ne	LBB0_13
; %bb.1:
	cbz	x19, LBB0_6
; %bb.2:
	ldr	x2, [x19]
	cbz	x2, LBB0_6
; %bb.3:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_6
; %bb.4:
	mov	x1, x22
	bl	_update_url_from_redirect
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
Lloh5:
	adrp	x0, _http_auth@GOTPAGE
Lloh6:
	ldr	x0, [x0, _http_auth@GOTPAGEOFF]
	bl	_credential_from_url
	ldr	x8, [x19]
	ldr	x22, [x8]
LBB0_6:
	ldr	w8, [x24]
	cmp	w23, w8
	b.ne	LBB0_13
; %bb.7:
	cmp	w20, #129
	b.eq	LBB0_10
; %bb.8:
	cmp	w20, #128
	b.ne	LBB0_14
; %bb.9:
	mov	x0, x21
	bl	_strbuf_reset
	b	LBB0_15
LBB0_10:
	mov	x0, x21
	bl	_fflush
	cbz	w0, LBB0_16
; %bb.11:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
LBB0_12:
	bl	_error_errno
Lloh9:
	adrp	x8, _HTTP_START_FAILED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HTTP_START_FAILED@GOTPAGEOFF]
Lloh11:
	ldr	w23, [x8]
LBB0_13:
	mov	x0, x23
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_BUG
LBB0_15:
Lloh14:
	adrp	x0, _http_auth@GOTPAGE
Lloh15:
	ldr	x0, [x0, _http_auth@GOTPAGEOFF]
	bl	_credential_fill
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_http_request
LBB0_16:
	mov	x0, x21
	bl	_rewind
	mov	x0, x21
	bl	_fileno
	mov	w1, #0
	bl	_ftruncate
	tbz	w0, #31, LBB0_15
; %bb.17:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_12
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_HTTP_OK,4,2                    ; @HTTP_OK
	.comm	_HTTP_REAUTH,4,2                ; @HTTP_REAUTH
	.comm	_http_auth,4,2                  ; @http_auth
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to flush a file"

	.comm	_HTTP_START_FAILED,4,2          ; @HTTP_START_FAILED
l_.str.1:                               ; @.str.1
	.asciz	"unable to truncate a file"

l_.str.2:                               ; @.str.2
	.asciz	"Unknown http_request target"

	.no_dead_strip	_http_request_reauth
.subsections_via_symbols
