	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ldns_udp_send_from
_ldns_udp_send_from:                    ## @ldns_udp_send_from
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	16(%rbp), %r15d
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	movl	%ecx, %edx
	movq	%r8, %rcx
	movl	%r9d, %r8d
	movl	%r15d, %r9d
	callq	_ldns_udp_bgsend_from
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movl	%eax, %ebx
	movl	%eax, %edi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_ldns_sock_wait
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movq	24(%rbp), %r12
	movl	%ebx, %edi
	callq	_ldns_sock_nonblock
	movl	%ebx, %edi
	movq	%r12, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ldns_udp_read_wire
	movq	%rax, %r15
	movl	%ebx, %edi
	callq	_close_socket
	cmpq	$0, (%r12)
	je	LBB0_6
## %bb.3:
	movq	%r15, (%r14)
	movq	_LDNS_STATUS_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	movq	_LDNS_STATUS_SOCKET_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movl	%ebx, %edi
	callq	_close_socket
LBB0_6:
	movq	_LDNS_STATUS_NETWORK_ERR@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_STATUS_SOCKET_ERROR,4,2   ## @LDNS_STATUS_SOCKET_ERROR
	.comm	_LDNS_STATUS_NETWORK_ERR,4,2    ## @LDNS_STATUS_NETWORK_ERR
	.comm	_LDNS_STATUS_OK,4,2             ## @LDNS_STATUS_OK
	.no_dead_strip	_ldns_udp_send_from
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ldns_udp_send_from
_ldns_udp_send_from:                    ; @ldns_udp_send_from
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x7
	mov	x20, x0
	and	x22, x6, #0xffffffff
	mov	x0, x1
	mov	x1, x2
	mov	x2, x3
	mov	x3, x4
	mov	x4, x5
	mov	x5, x22
	bl	_ldns_udp_bgsend_from
	cbz	w0, LBB0_4
; %bb.1:
	mov	x21, x0
	mov	x1, x22
	mov	w2, #0
	bl	_ldns_sock_wait
	cbz	w0, LBB0_5
; %bb.2:
	mov	x0, x21
	bl	_ldns_sock_nonblock
	mov	x0, x21
	mov	x1, x19
	mov	x2, #0
	mov	x3, #0
	bl	_ldns_udp_read_wire
	mov	x22, x0
	mov	x0, x21
	bl	_close_socket
	ldr	x8, [x19]
	cbz	x8, LBB0_6
; %bb.3:
	str	x22, [x20]
Lloh0:
	adrp	x8, _LDNS_STATUS_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LDNS_STATUS_OK@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
Lloh2:
	adrp	x8, _LDNS_STATUS_SOCKET_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LDNS_STATUS_SOCKET_ERROR@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	mov	x0, x21
	bl	_close_socket
LBB0_6:
Lloh4:
	adrp	x8, _LDNS_STATUS_NETWORK_ERR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LDNS_STATUS_NETWORK_ERR@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_STATUS_SOCKET_ERROR,4,2   ; @LDNS_STATUS_SOCKET_ERROR
	.comm	_LDNS_STATUS_NETWORK_ERR,4,2    ; @LDNS_STATUS_NETWORK_ERR
	.comm	_LDNS_STATUS_OK,4,2             ; @LDNS_STATUS_OK
	.no_dead_strip	_ldns_udp_send_from
.subsections_via_symbols
