	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function http_fetch_chunk_callback
_http_fetch_chunk_callback:             ## @http_fetch_chunk_callback
	.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	%r8, %r15
	movl	%ecx, %r13d
	movq	%rdx, %r14
	movq	(%rdi), %rax
	movq	(%rax), %r12
	movl	%ecx, %edi
	xorl	%esi, %esi
	callq	_mrb_ary_entry
	movq	_input_stream_type@GOTPCREL(%rip), %rdx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_mrb_data_check_get_ptr
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movl	%r13d, %edi
	movl	$1, %esi
	callq	_mrb_ary_entry
	movl	%eax, %edi
	callq	_mrb_bool
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	cmpl	$0, (%rbx)
	je	LBB0_3
## %bb.7:
	movl	$1, (%r15)
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_create_already_consumed_error  ## TAILCALL
LBB0_6:
	movl	$1, (%r15)
	movq	_E_ARGUMENT_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mrb_exc_new_str_lit            ## TAILCALL
LBB0_3:
	movl	$1, (%rbx)
LBB0_4:
	cmpq	$0, 8(%rbx)
	je	LBB0_5
## %bb.8:
	movq	%rbx, %rdi
	callq	_build_chunk
	movl	$1, (%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_attach_receiver
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mrb_nil_value                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_input_stream_type,4,2          ## @input_stream_type
	.comm	_E_ARGUMENT_ERROR,4,2           ## @E_ARGUMENT_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"_HttpInputStream#each wrong self"

	.no_dead_strip	_http_fetch_chunk_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function http_fetch_chunk_callback
_http_fetch_chunk_callback:             ; @http_fetch_chunk_callback
	.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, x4
	mov	x23, x3
	mov	x20, x2
	ldr	x8, [x0]
	ldr	x21, [x8]
	mov	x0, x3
	mov	w1, #0
	bl	_mrb_ary_entry
	mov	x1, x0
Lloh0:
	adrp	x2, _input_stream_type@GOTPAGE
Lloh1:
	ldr	x2, [x2, _input_stream_type@GOTPAGEOFF]
	mov	x0, x21
	bl	_mrb_data_check_get_ptr
	cbz	x0, LBB0_4
; %bb.1:
	mov	x22, x0
	mov	x0, x23
	mov	w1, #1
	bl	_mrb_ary_entry
	bl	_mrb_bool
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w8, [x22]
	cbz	w8, LBB0_5
; %bb.3:
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x21
	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	_create_already_consumed_error
LBB0_4:
	mov	w8, #1
	str	w8, [x19]
Lloh2:
	adrp	x8, _E_ARGUMENT_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _E_ARGUMENT_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	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	_mrb_exc_new_str_lit
LBB0_5:
	mov	w8, #1
	str	w8, [x22]
LBB0_6:
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x22
	bl	_build_chunk
	mov	w8, #1
	str	w8, [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
	ret
LBB0_8:
	ldr	w1, [x20]
	mov	x0, x22
	bl	_attach_receiver
	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	_mrb_nil_value
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_input_stream_type,4,2          ; @input_stream_type
	.comm	_E_ARGUMENT_ERROR,4,2           ; @E_ARGUMENT_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"_HttpInputStream#each wrong self"

	.no_dead_strip	_http_fetch_chunk_callback
.subsections_via_symbols
