	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CRYPT_DownloadObject
_CRYPT_DownloadObject:                  ## @CRYPT_DownloadObject
	.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	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movl	%esi, %r13d
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %r14
	testq	%r14, %r14
	je	LBB0_22
LBB0_19:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, -44(%rbp)
	je	LBB0_22
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	leaq	-44(%rbp), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_InternetQueryDataAvailable
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %esi
	testl	%esi, %esi
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	addl	%r12d, %esi
	movl	%ebx, %edi
	callq	_CryptMemRealloc
	movl	%eax, %ebx
	testl	%ebx, %ebx
	je	LBB0_12
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movups	L___const.CRYPT_DownloadObject.buffer(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	movl	-44(%rbp), %eax
	movl	%eax, -60(%rbp)
	leal	(%rbx,%r12), %eax
	movl	%eax, -56(%rbp)
	movq	_IRF_NO_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, %edi
	leaq	-64(%rbp), %rsi
	movl	%r15d, %ecx
	callq	_InternetReadFileExA
	testq	%rax, %rax
	je	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %r14
LBB0_21:                                ##   in Loop: Header=BB0_1 Depth=1
	addl	-60(%rbp), %r12d
	testq	%r14, %r14
	jne	LBB0_19
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_GetLastError
	movq	_ERROR_IO_PENDING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_26
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r15), %esi
	movl	4(%r15), %edi
	callq	_WaitForSingleObject
	movq	_WAIT_TIMEOUT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_27
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	testq	%r14, %r14
	jne	LBB0_19
	jmp	LBB0_22
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%esi, %edi
	callq	_CryptMemAlloc
	movq	%rax, %rbx
	testl	%ebx, %ebx
	jne	LBB0_5
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_ERROR_OUTOFMEMORY@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_SetLastError
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	xorl	%ebx, %ebx
	testq	%r14, %r14
	jne	LBB0_19
	jmp	LBB0_22
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_GetLastError
	movq	_ERROR_IO_PENDING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r15), %esi
	movl	4(%r15), %edi
	callq	_WaitForSingleObject
	movq	_WAIT_TIMEOUT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_ERROR_TIMEOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	jmp	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	callq	_SetLastError
LBB0_18:                                ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r14d, %r14d
	testq	%r14, %r14
	jne	LBB0_19
	jmp	LBB0_22
LBB0_20:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	testq	%r14, %r14
	jne	LBB0_21
	jmp	LBB0_18
LBB0_22:
	testq	%r14, %r14
	je	LBB0_26
## %bb.23:
	movl	$24, %edi
	callq	_CryptMemAlloc
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 8(%rcx)
	testq	%rax, %rax
	je	LBB0_28
## %bb.24:
	movl	%r12d, (%rax)
	movl	%ebx, 4(%rax)
	movl	$1, (%rcx)
	jmp	LBB0_29
LBB0_26:
	xorl	%r14d, %r14d
	jmp	LBB0_29
LBB0_27:
	movq	_ERROR_TIMEOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_SetLastError
	xorl	%r14d, %r14d
	jmp	LBB0_29
LBB0_28:
	movl	%ebx, %edi
	callq	_CryptMemFree
	movq	_ERROR_OUTOFMEMORY@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_SetLastError
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_29:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_TRACE
	movq	%r14, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @__const.CRYPT_DownloadObject.buffer
L___const.CRYPT_DownloadObject.buffer:
	.long	16                              ## 0x10
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0

	.comm	_IRF_NO_WAIT,4,2                ## @IRF_NO_WAIT
	.comm	_ERROR_IO_PENDING,8,3           ## @ERROR_IO_PENDING
	.comm	_WAIT_TIMEOUT,8,3               ## @WAIT_TIMEOUT
	.comm	_ERROR_TIMEOUT,8,3              ## @ERROR_TIMEOUT
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_ERROR_OUTOFMEMORY,8,3          ## @ERROR_OUTOFMEMORY
	.comm	_FALSE,8,3                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"returning %d\n"

	.no_dead_strip	_CRYPT_DownloadObject
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CRYPT_DownloadObject
_CRYPT_DownloadObject:                  ; @CRYPT_DownloadObject
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x3, [sp, #8]                    ; 8-byte Folded Spill
	mov	x20, x2
	mov	x22, x1
	mov	w21, #0
	mov	w24, #0
Lloh0:
	adrp	x27, _ERROR_IO_PENDING@GOTPAGE
Lloh1:
	ldr	x27, [x27, _ERROR_IO_PENDING@GOTPAGEOFF]
Lloh2:
	adrp	x28, _WAIT_TIMEOUT@GOTPAGE
Lloh3:
	ldr	x28, [x28, _WAIT_TIMEOUT@GOTPAGEOFF]
Lloh4:
	adrp	x19, _TRUE@GOTPAGE
Lloh5:
	ldr	x19, [x19, _TRUE@GOTPAGEOFF]
Lloh6:
	adrp	x25, _IRF_NO_WAIT@GOTPAGE
Lloh7:
	ldr	x25, [x25, _IRF_NO_WAIT@GOTPAGEOFF]
Lloh8:
	adrp	x26, l___const.CRYPT_DownloadObject.buffer@PAGE
Lloh9:
	add	x26, x26, l___const.CRYPT_DownloadObject.buffer@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #44
	mov	x0, x22
	mov	w2, #0
	mov	w3, #0
	bl	_InternetQueryDataAvailable
	cbz	x0, LBB0_8
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x23, x0
	ldr	w0, [sp, #44]
	cbz	w0, LBB0_13
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	cbz	w21, LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w1, w0, w24
	mov	x0, x21
	bl	_CryptMemRealloc
	mov	x21, x0
	cbz	w21, LBB0_12
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	q0, [x26]
	str	q0, [sp, #16]
	ldr	w8, [sp, #44]
	add	w9, w21, w24
	stp	w8, w9, [sp, #20]
	ldr	w2, [x25]
	add	x1, sp, #16
	mov	x0, x22
	mov	x3, x20
	bl	_InternetReadFileExA
	cbz	x0, LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x23, x0
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [sp, #20]
	add	w24, w8, w24
	cbnz	x23, LBB0_14
	b	LBB0_22
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	bl	_GetLastError
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_25
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	ldp	w1, w0, [x20]
	bl	_WaitForSingleObject
	ldr	x8, [x28]
	cmp	x0, x8
	b.eq	LBB0_26
; %bb.10:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x23, [x19]
	cbnz	x23, LBB0_14
	b	LBB0_22
LBB0_11:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_CryptMemAlloc
	mov	x21, x0
	cbnz	w21, LBB0_5
LBB0_12:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh10:
	adrp	x8, _ERROR_OUTOFMEMORY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERROR_OUTOFMEMORY@GOTPAGEOFF]
Lloh12:
	ldr	x0, [x8]
	bl	_SetLastError
Lloh13:
	adrp	x8, _FALSE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh15:
	ldr	x23, [x8]
LBB0_13:                                ;   in Loop: Header=BB0_1 Depth=1
	cbz	x23, LBB0_22
LBB0_14:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [sp, #44]
	cbnz	w8, LBB0_1
	b	LBB0_22
LBB0_15:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_GetLastError
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_1 Depth=1
	ldp	w1, w0, [x20]
	bl	_WaitForSingleObject
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_1 Depth=1
Lloh16:
	adrp	x8, _ERROR_TIMEOUT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ERROR_TIMEOUT@GOTPAGEOFF]
Lloh18:
	ldr	x0, [x8]
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_SetLastError
LBB0_20:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x23, #0
	cbnz	x23, LBB0_14
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x23, [x19]
	cbnz	x23, LBB0_7
	b	LBB0_20
LBB0_22:
	cbz	x23, LBB0_28
; %bb.23:
	mov	w0, #24
	bl	_CryptMemAlloc
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	str	x0, [x9, #8]
	cbz	x0, LBB0_27
; %bb.24:
	stp	w24, w21, [x0]
	mov	w8, #1
	str	w8, [x9]
	b	LBB0_28
LBB0_25:
	mov	x23, #0
	b	LBB0_28
LBB0_26:
Lloh19:
	adrp	x8, _ERROR_TIMEOUT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ERROR_TIMEOUT@GOTPAGEOFF]
Lloh21:
	ldr	x0, [x8]
	bl	_SetLastError
	mov	x23, #0
	b	LBB0_28
LBB0_27:
	mov	x0, x21
	bl	_CryptMemFree
Lloh22:
	adrp	x8, _ERROR_OUTOFMEMORY@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ERROR_OUTOFMEMORY@GOTPAGEOFF]
Lloh24:
	ldr	x0, [x8]
	bl	_SetLastError
Lloh25:
	adrp	x8, _FALSE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh27:
	ldr	x23, [x8]
LBB0_28:
Lloh28:
	adrp	x0, l_.str@PAGE
Lloh29:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	bl	_TRACE
	mov	x0, x23
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @__const.CRYPT_DownloadObject.buffer
l___const.CRYPT_DownloadObject.buffer:
	.long	16                              ; 0x10
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0

	.comm	_IRF_NO_WAIT,4,2                ; @IRF_NO_WAIT
	.comm	_ERROR_IO_PENDING,8,3           ; @ERROR_IO_PENDING
	.comm	_WAIT_TIMEOUT,8,3               ; @WAIT_TIMEOUT
	.comm	_ERROR_TIMEOUT,8,3              ; @ERROR_TIMEOUT
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_ERROR_OUTOFMEMORY,8,3          ; @ERROR_OUTOFMEMORY
	.comm	_FALSE,8,3                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"returning %d\n"

	.no_dead_strip	_CRYPT_DownloadObject
.subsections_via_symbols
