	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_serf__handle_auth_response     ## -- Begin function serf__handle_auth_response
	.p2align	4, 0x90
_serf__handle_auth_response:            ## @serf__handle_auth_response
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r13
	movl	$0, (%rdi)
	leaq	-48(%rbp), %rsi
	movq	%rdx, %rdi
	callq	_serf_bucket_response_status
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_SERF_BUCKET_READ_ERROR
	testq	%rax, %rax
	je	LBB0_1
LBB0_22:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, -44(%rbp)
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_2
LBB0_4:
	movq	%r15, %rdi
	callq	_serf_bucket_response_wait_for_headers
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_APR_STATUS_IS_EOF
	testq	%rax, %rax
	je	LBB0_22
LBB0_6:
	movq	_APR_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_22
LBB0_2:
	movq	%rbx, %rdi
	callq	_APR_STATUS_IS_EOF
	testq	%rax, %rax
	jne	LBB0_22
## %bb.3:
	movq	%rbx, %rdi
	callq	_APR_STATUS_IS_EAGAIN
	testq	%rax, %rax
	jne	LBB0_22
	jmp	LBB0_4
LBB0_8:
	movl	-48(%rbp), %eax
	cmpl	$407, %eax                      ## imm = 0x197
	je	LBB0_10
## %bb.9:
	cmpl	$401, %eax                      ## imm = 0x191
	jne	LBB0_16
LBB0_10:
	movq	%r15, %rdi
	callq	_discard_body
	movq	%rax, %rbx
	movl	$1, (%r13)
	movq	%rax, %rdi
	callq	_APR_STATUS_IS_EOF
	testq	%rax, %rax
	je	LBB0_22
## %bb.11:
	movl	-48(%rbp), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	movq	%r14, %rcx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	callq	_dispatch_auth
	movq	%rax, %rbx
	movq	_APR_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_22
## %bb.12:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 16(%rax)
	movq	(%rax), %rdi
	movl	12(%rax), %esi
	movl	8(%rax), %edx
	je	LBB0_14
## %bb.13:
	callq	_serf__ssltunnel_request_create
	jmp	LBB0_15
LBB0_16:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %r12
	movq	(%r12), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_APR_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r12, %rdi
	callq	_serf__get_authn_info_for_server
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.17:
	movq	_HOST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-48(%rbp), %edx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rsp)
	movq	%r12, %rcx
	movq	%r14, %r8
	movq	%r15, %r9
	callq	*(%rdi)
	movq	%rax, %rbx
LBB0_18:
	testq	%rbx, %rbx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	je	LBB0_19
LBB0_21:
	movq	%r15, %rdi
	callq	_discard_body
	movq	%rax, %r14
	movl	$1, (%r13)
	movq	%rax, %rdi
	callq	_APR_STATUS_IS_EOF
	testq	%rax, %rax
	cmoveq	%r14, %rbx
	jmp	LBB0_22
LBB0_19:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.20:
	movq	_PROXY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-48(%rbp), %edx
	movq	%rcx, (%rsp)
	movq	%r12, %rcx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	%r15, %r9
	callq	*(%rdi)
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_21
	jmp	LBB0_6
LBB0_14:
	callq	_serf_connection_priority_request_create
LBB0_15:
	movq	_APR_EOF@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_APR_SUCCESS,8,3                ## @APR_SUCCESS
	.comm	_APR_EOF,8,3                    ## @APR_EOF
	.comm	_HOST,4,2                       ## @HOST
	.comm	_PROXY,4,2                      ## @PROXY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_serf__handle_auth_response     ; -- Begin function serf__handle_auth_response
	.p2align	2
_serf__handle_auth_response:            ; @serf__handle_auth_response
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x4
	mov	x23, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	str	wzr, [x0]
	add	x1, sp, #8
	mov	x0, x2
	bl	_serf_bucket_response_status
	mov	x24, x0
	bl	_SERF_BUCKET_READ_ERROR
	cbnz	x0, LBB0_21
; %bb.1:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_4
LBB0_2:
	mov	x0, x20
	bl	_serf_bucket_response_wait_for_headers
	cbz	x0, LBB0_6
; %bb.3:
	mov	x24, x0
	bl	_APR_STATUS_IS_EOF
Lloh0:
	adrp	x8, _APR_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _APR_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, #0
	csel	x24, x24, x8, eq
	b	LBB0_21
LBB0_4:
	mov	x0, x24
	bl	_APR_STATUS_IS_EOF
	cbnz	x0, LBB0_21
; %bb.5:
	mov	x0, x24
	bl	_APR_STATUS_IS_EAGAIN
	cbnz	x0, LBB0_21
	b	LBB0_2
LBB0_6:
	ldr	w8, [sp, #8]
	cmp	w8, #407
	b.eq	LBB0_8
; %bb.7:
	cmp	w8, #401
	b.ne	LBB0_12
LBB0_8:
	mov	x0, x20
	bl	_discard_body
	mov	x24, x0
	mov	w8, #1
	str	w8, [x22]
	bl	_APR_STATUS_IS_EOF
	cbz	x0, LBB0_21
; %bb.9:
	ldr	w0, [sp, #8]
	mov	x1, x19
	mov	x2, x20
	mov	x3, x23
	mov	x4, x21
	bl	_dispatch_auth
	mov	x24, x0
Lloh3:
	adrp	x8, _APR_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _APR_SUCCESS@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_21
; %bb.10:
	ldr	x8, [x19, #16]
	ldr	x0, [x19]
	ldp	w2, w1, [x19, #8]
	cbz	x8, LBB0_19
; %bb.11:
	bl	_serf__ssltunnel_request_create
	b	LBB0_20
LBB0_12:
	ldr	x23, [x19]
	ldr	x26, [x23]
Lloh6:
	adrp	x25, _APR_SUCCESS@GOTPAGE
Lloh7:
	ldr	x25, [x25, _APR_SUCCESS@GOTPAGEOFF]
	ldr	x24, [x25]
	mov	x0, x23
	bl	_serf__get_authn_info_for_server
	ldr	x0, [x0]
	cbz	x0, LBB0_14
; %bb.13:
	ldr	x8, [x0]
Lloh8:
	adrp	x9, _HOST@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HOST@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x9]
	ldr	w2, [sp, #8]
	mov	x3, x23
	mov	x4, x19
	mov	x5, x20
	mov	x6, x21
	blr	x8
	mov	x24, x0
LBB0_14:
	cbz	x24, LBB0_16
LBB0_15:
	mov	x0, x20
	bl	_discard_body
	mov	x19, x0
	mov	w8, #1
	str	w8, [x22]
	bl	_APR_STATUS_IS_EOF
	cmp	x0, #0
	csel	x24, x19, x24, eq
	b	LBB0_21
LBB0_16:
	ldr	x0, [x26]
	cbz	x0, LBB0_18
; %bb.17:
	ldr	x8, [x0]
Lloh11:
	adrp	x9, _PROXY@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PROXY@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x9]
	ldr	w2, [sp, #8]
	mov	x3, x23
	mov	x4, x19
	mov	x5, x20
	mov	x6, x21
	blr	x8
	mov	x24, x0
	cbnz	x0, LBB0_15
LBB0_18:
	ldr	x24, [x25]
	b	LBB0_21
LBB0_19:
	bl	_serf_connection_priority_request_create
LBB0_20:
Lloh14:
	adrp	x8, _APR_EOF@GOTPAGE
Lloh15:
	ldr	x8, [x8, _APR_EOF@GOTPAGEOFF]
Lloh16:
	ldr	x24, [x8]
LBB0_21:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_APR_SUCCESS,8,3                ; @APR_SUCCESS
	.comm	_APR_EOF,8,3                    ; @APR_EOF
	.comm	_HOST,4,2                       ; @HOST
	.comm	_PROXY,4,2                      ; @PROXY
.subsections_via_symbols
