	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function datagram_client
_datagram_client:                       ## @datagram_client
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movb	$0, -41(%rbp)
	leaq	-56(%rbp), %rdi
	movl	$12, %esi
	callq	_bzero
	movl	$12, -56(%rbp)
	movq	_AF_UNIX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	-52(%rbp), %edi
	movq	_socket_path@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_strcpy
	movq	_ITERATIONS@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_7
## %bb.1:
	xorl	%r15d, %r15d
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %r14
	leaq	-56(%rbp), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	_close
	incl	%r15d
	cmpl	(%r13), %r15d
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_PF_UNIX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	xorl	%edx, %edx
	callq	_socket
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ebx
	movl	%eax, %edi
	leaq	-41(%rbp), %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	movq	%r12, %r8
	movl	$12, %r9d
	callq	_sendto
	testl	%eax, %eax
	jns	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	_warn
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_warn
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_UNIX,4,2                    ## @AF_UNIX
	.comm	_socket_path,4,2                ## @socket_path
	.comm	_ITERATIONS,4,2                 ## @ITERATIONS
	.comm	_PF_UNIX,4,2                    ## @PF_UNIX
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"datagram_client: socket"

L_.str.1:                               ## @.str.1
	.asciz	"datagram_client: sendto"

	.no_dead_strip	_datagram_client
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function datagram_client
_datagram_client:                       ; @datagram_client
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	strb	wzr, [sp, #15]
	mov	w19, #12
	add	x0, sp, #16
	mov	w1, #12
	bl	_bzero
Lloh0:
	adrp	x8, _AF_UNIX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AF_UNIX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w19, [sp, #16]
	str	w8, [sp, #24]
	ldr	w0, [sp, #20]
Lloh3:
	adrp	x8, _socket_path@GOTPAGE
Lloh4:
	ldr	x8, [x8, _socket_path@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_strcpy
Lloh6:
	adrp	x21, _ITERATIONS@GOTPAGE
Lloh7:
	ldr	x21, [x21, _ITERATIONS@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	w22, #0
Lloh8:
	adrp	x23, _PF_UNIX@GOTPAGE
Lloh9:
	ldr	x23, [x23, _PF_UNIX@GOTPAGEOFF]
Lloh10:
	adrp	x24, _SOCK_DGRAM@GOTPAGE
Lloh11:
	ldr	x24, [x24, _SOCK_DGRAM@GOTPAGEOFF]
Lloh12:
	adrp	x19, l_.str.1@PAGE
Lloh13:
	add	x19, x19, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_close
	add	w22, w22, #1
	ldr	w8, [x21]
	cmp	w22, w8
	b.ge	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	ldr	w1, [x24]
	mov	w2, #0
	bl	_socket
	tbnz	w0, #31, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x20, x0
	add	x1, sp, #15
	add	x4, sp, #16
	mov	w2, #1
	mov	w3, #0
	mov	w5, #12
	bl	_sendto
	tbz	w0, #31, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_warn
	b	LBB0_2
LBB0_6:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warn
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_UNIX,4,2                    ; @AF_UNIX
	.comm	_socket_path,4,2                ; @socket_path
	.comm	_ITERATIONS,4,2                 ; @ITERATIONS
	.comm	_PF_UNIX,4,2                    ; @PF_UNIX
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"datagram_client: socket"

l_.str.1:                               ; @.str.1
	.asciz	"datagram_client: sendto"

	.no_dead_strip	_datagram_client
.subsections_via_symbols
