	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rad_send_request               ## -- Begin function rad_send_request
	.p2align	4, 0x90
_rad_send_request:                      ## @rad_send_request
	.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	%rdi, %r14
	leaq	-44(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	callq	_rad_init_send_request
	testl	%eax, %eax
	jne	LBB0_11
## %bb.1:
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_gettimeofday
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	callq	_timeradd
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_FD_ZERO
	movl	-44(%rbp), %edi
	movq	%rbx, %rsi
	callq	_FD_SET
	movl	-44(%rbp), %edi
	incl	%edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r15, %r8
	callq	_select
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.2:
	movl	%eax, %r13d
	leaq	-48(%rbp), %rbx
	leaq	-64(%rbp), %r15
	leaq	-80(%rbp), %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_gettimeofday
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r15, %rdx
	callq	_timersub
	cmpq	$0, -64(%rbp)
	jle	LBB0_5
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_FD_ZERO
	movl	-44(%rbp), %edi
	movq	%rbx, %rsi
	callq	_FD_SET
	movl	-44(%rbp), %edi
	incl	%edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r15, %r8
	callq	_select
	movl	%eax, %r13d
	cmpl	$-1, %eax
	je	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %edi
	movq	%rbx, %rsi
	callq	_FD_ISSET
	testl	%eax, %eax
	je	LBB0_4
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movl	%r13d, %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rcx
	callq	_rad_continue_send_request
	testl	%eax, %eax
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_gettimeofday
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r12, %rdx
	callq	_timeradd
	jmp	LBB0_9
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, -56(%rbp)
	jg	LBB0_9
	jmp	LBB0_7
LBB0_10:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_generr
	movl	$-1, %eax
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"select: %s"

	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rad_send_request               ; -- Begin function rad_send_request
	.p2align	2
_rad_send_request:                      ; @rad_send_request
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x1, sp, #12
	add	x2, sp, #16
	bl	_rad_init_send_request
	cbnz	w0, LBB0_11
; %bb.1:
	add	x0, sp, #32
	mov	x1, #0
	bl	_gettimeofday
	add	x0, sp, #16
	add	x1, sp, #32
	add	x2, sp, #32
	bl	_timeradd
	add	x0, sp, #8
	bl	_FD_ZERO
	ldr	w0, [sp, #12]
	add	x1, sp, #8
	bl	_FD_SET
	ldr	w8, [sp, #12]
	add	w0, w8, #1
	add	x1, sp, #8
	add	x4, sp, #16
	mov	x2, #0
	mov	x3, #0
	bl	_select
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.2:
	mov	x20, x0
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #16
	mov	x1, #0
	bl	_gettimeofday
	add	x0, sp, #32
	add	x1, sp, #16
	add	x2, sp, #16
	bl	_timersub
	ldr	x8, [sp, #16]
	cmp	x8, #0
	b.le	LBB0_8
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #8
	bl	_FD_ZERO
	ldr	w0, [sp, #12]
	add	x1, sp, #8
	bl	_FD_SET
	ldr	w8, [sp, #12]
	add	w0, w8, #1
	add	x1, sp, #8
	add	x4, sp, #16
	mov	x2, #0
	mov	x3, #0
	bl	_select
	mov	x20, x0
	cmn	w0, #1
	b.eq	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [sp, #12]
	add	x1, sp, #8
	bl	_FD_ISSET
	cbz	w0, LBB0_3
LBB0_6:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x2, sp, #12
	add	x3, sp, #16
	mov	x0, x19
	mov	x1, x20
	bl	_rad_continue_send_request
	cbnz	w0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #32
	mov	x1, #0
	bl	_gettimeofday
	add	x0, sp, #16
	add	x1, sp, #32
	add	x2, sp, #32
	bl	_timeradd
	b	LBB0_4
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbnz	x8, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #24]
	cmp	x8, #0
	b.gt	LBB0_4
	b	LBB0_6
LBB0_10:
Lloh0:
	adrp	x8, _errno@GOTPAGE
Lloh1:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_generr
	mov	w0, #-1
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"select: %s"

	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
