	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function task_http_iterate_transfer
_task_http_iterate_transfer:            ## @task_http_iterate_transfer
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movq	$0, -40(%rbp)
	movq	$0, -32(%rbp)
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_task_queue_is_threaded
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	$1, %edi
	callq	_retro_sleep
LBB0_2:
	movl	(%rbx), %edi
	leaq	-40(%rbp), %rsi
	leaq	-32(%rbp), %rdx
	callq	_net_http_update
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	movq	-32(%rbp), %rax
	movl	$-1, %r15d
	movl	$-1, %esi
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	shrq	$2, %rax
	movabsq	$2951479051793528259, %rcx      ## imm = 0x28F5C28F5C28F5C3
	mulq	%rcx
	movq	%rdx, %rcx
	movslq	-40(%rbp), %rax
	shrq	$2, %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_5
## %bb.6:
	xorl	%edx, %edx
	divq	%rcx
	movq	%rax, %rsi
	jmp	LBB0_7
LBB0_5:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %esi
LBB0_7:
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_task_set_progress
LBB0_8:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_task_http_iterate_transfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function task_http_iterate_transfer
_task_http_iterate_transfer:            ; @task_http_iterate_transfer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x20, [x0]
	stp	xzr, xzr, [sp]
	bl	_task_queue_is_threaded
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #1
	bl	_retro_sleep
LBB0_2:
	ldr	w0, [x20]
	add	x1, sp, #8
	mov	x2, sp
	bl	_net_http_update
	cbz	w0, LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_8
LBB0_4:
	ldr	x8, [sp]
	cbz	x8, LBB0_6
; %bb.5:
	ldrsw	x9, [sp, #8]
	lsr	x8, x8, #2
	mov	x10, #62915
	movk	x10, #23592, lsl #16
	movk	x10, #49807, lsl #32
	movk	x10, #10485, lsl #48
	umulh	x8, x8, x10
	lsr	x8, x8, #2
	udiv	x1, x9, x8
	b	LBB0_7
LBB0_6:
	mov	w1, #-1
LBB0_7:
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_task_set_progress
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_task_http_iterate_transfer
.subsections_via_symbols
