	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_discover_prga                  ## -- Begin function discover_prga
	.p2align	4, 0x90
_discover_prga:                         ## @discover_prga
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r14d
	movq	_fragstate@GOTPCREL(%rip), %rbx
	cmpl	$0, 16(%rbx)
	je	LBB0_1
## %bb.2:
	cmpq	$0, 8(%rbx)
	jne	LBB0_5
	jmp	LBB0_3
LBB0_1:
	movq	_prgainfo@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	cmpl	$20, %eax
	leal	(%rax,%rax,2), %esi
	cmovll	%ecx, %esi
	movq	_fragstate@GOTPCREL(%rip), %rdi
	callq	_prepare_fragstate
	cmpq	$0, 8(%rbx)
	jne	LBB0_5
LBB0_3:
	movq	_prgainfo@GOTPCREL(%rip), %rdx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_send_fragment
	cmpq	$0, 8(%rbx)
	je	LBB0_5
## %bb.4:
	movq	_fragstate@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	callq	_gettimeofday
	cmpl	$-1, %eax
	je	LBB0_6
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_err                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_fragstate,24,3                 ## @fragstate
	.comm	_prgainfo,4,2                   ## @prgainfo
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gettimeofday()"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_discover_prga                  ; -- Begin function discover_prga
	.p2align	2
_discover_prga:                         ; @discover_prga
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
Lloh0:
	adrp	x19, _fragstate@GOTPAGE
Lloh1:
	ldr	x19, [x19, _fragstate@GOTPAGEOFF]
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_5
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, _prgainfo@GOTPAGE
Lloh3:
	ldr	x8, [x8, _prgainfo@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	add	w9, w8, w8, lsl #1
	cmp	w8, #19
	csel	w1, w9, wzr, gt
Lloh5:
	adrp	x0, _fragstate@GOTPAGE
Lloh6:
	ldr	x0, [x0, _fragstate@GOTPAGEOFF]
	bl	_prepare_fragstate
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_5
LBB0_3:
Lloh7:
	adrp	x2, _prgainfo@GOTPAGE
Lloh8:
	ldr	x2, [x2, _prgainfo@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x19
	bl	_send_fragment
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_5
; %bb.4:
Lloh9:
	adrp	x0, _fragstate@GOTPAGE
Lloh10:
	ldr	x0, [x0, _fragstate@GOTPAGEOFF]
	mov	x1, #0
	bl	_gettimeofday
	cmn	w0, #1
	b.eq	LBB0_6
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_err
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_fragstate,24,3                 ; @fragstate
	.comm	_prgainfo,4,2                   ; @prgainfo
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gettimeofday()"

.subsections_via_symbols
