	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function udp_create
_udp_create:                            ## @udp_create
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_PF_INET@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	$-1, %r12d
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.1:
	movl	%eax, %r15d
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	(%r14), %edi
	movl	(%r13), %esi
	xorl	%edx, %edx
	callq	_socket
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.2:
	movl	%eax, %r13d
	leaq	-120(%rbp), %rdi
	movl	$32, %esi
	callq	_bzero
	movl	$32, -120(%rbp)
	movq	_AF_INET@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	%rax, -96(%rbp)
	movq	_INADDR_LOOPBACK@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_htonl
	movq	%rax, -104(%rbp)
	movq	_UDP_PORT1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movq	%rax, -112(%rbp)
	leaq	-88(%rbp), %rdi
	movl	$32, %esi
	callq	_bzero
	movl	$32, -88(%rbp)
	movq	(%rbx), %rax
	movq	%rax, -64(%rbp)
	movl	(%r14), %edi
	callq	_htonl
	movq	%rax, -72(%rbp)
	movq	_UDP_PORT2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movq	%rax, -80(%rbp)
	movl	%r15d, %edi
	leaq	-120(%rbp), %rsi
	movl	$32, %edx
	callq	_bind
	testq	%rax, %rax
	js	LBB0_7
## %bb.3:
	leaq	-88(%rbp), %rsi
	movl	%r13d, %edi
	movl	$32, %edx
	callq	_bind
	testq	%rax, %rax
	js	LBB0_7
## %bb.4:
	leaq	-88(%rbp), %rsi
	movl	%r15d, %edi
	movl	$32, %edx
	callq	_connect
	testq	%rax, %rax
	js	LBB0_7
## %bb.5:
	leaq	-120(%rbp), %rsi
	movl	%r13d, %edi
	movl	$32, %edx
	callq	_connect
	testq	%rax, %rax
	js	LBB0_7
## %bb.6:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r15d, (%rax)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r13d, (%rax)
	xorl	%r12d, %r12d
	jmp	LBB0_10
LBB0_7:
	movl	%r15d, %edi
	callq	_close
	movl	%r13d, %edi
	jmp	LBB0_9
LBB0_8:
	movl	%r15d, %edi
LBB0_9:
	callq	_close
LBB0_10:
	movl	%r12d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PF_INET,4,2                    ## @PF_INET
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_INADDR_LOOPBACK,4,2            ## @INADDR_LOOPBACK
	.comm	_UDP_PORT1,4,2                  ## @UDP_PORT1
	.comm	_UDP_PORT2,4,2                  ## @UDP_PORT2
	.no_dead_strip	_udp_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function udp_create
_udp_create:                            ; @udp_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _PF_INET@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PF_INET@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x23, _SOCK_DGRAM@GOTPAGE
Lloh3:
	ldr	x23, [x23, _SOCK_DGRAM@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w2, #0
	bl	_socket
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.1:
	mov	x22, x0
	ldr	w0, [x21]
	ldr	w1, [x23]
	mov	w2, #0
	bl	_socket
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.2:
	mov	x21, x0
	mov	w23, #32
	add	x0, sp, #32
	mov	w1, #32
	bl	_bzero
Lloh4:
	adrp	x24, _AF_INET@GOTPAGE
Lloh5:
	ldr	x24, [x24, _AF_INET@GOTPAGEOFF]
	str	w23, [sp, #32]
	ldr	x8, [x24]
	str	x8, [sp, #56]
Lloh6:
	adrp	x25, _INADDR_LOOPBACK@GOTPAGE
Lloh7:
	ldr	x25, [x25, _INADDR_LOOPBACK@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_htonl
	str	x0, [sp, #48]
Lloh8:
	adrp	x8, _UDP_PORT1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _UDP_PORT1@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_htons
	str	x0, [sp, #40]
	mov	x0, sp
	mov	w1, #32
	bl	_bzero
	str	w23, [sp]
	ldr	x8, [x24]
	str	x8, [sp, #24]
	ldr	w0, [x25]
	bl	_htonl
	str	x0, [sp, #16]
Lloh11:
	adrp	x8, _UDP_PORT2@GOTPAGE
Lloh12:
	ldr	x8, [x8, _UDP_PORT2@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_htons
	str	x0, [sp, #8]
	add	x1, sp, #32
	mov	x0, x22
	mov	w2, #32
	bl	_bind
	tbnz	x0, #63, LBB0_7
; %bb.3:
	mov	x1, sp
	mov	x0, x21
	mov	w2, #32
	bl	_bind
	tbnz	x0, #63, LBB0_7
; %bb.4:
	mov	x1, sp
	mov	x0, x22
	mov	w2, #32
	bl	_connect
	tbnz	x0, #63, LBB0_7
; %bb.5:
	add	x1, sp, #32
	mov	x0, x21
	mov	w2, #32
	bl	_connect
	tbnz	x0, #63, LBB0_7
; %bb.6:
	mov	w0, #0
	str	w22, [x20]
	str	w21, [x19]
	b	LBB0_10
LBB0_7:
	mov	x0, x22
	bl	_close
	mov	x0, x21
	b	LBB0_9
LBB0_8:
	mov	x0, x22
LBB0_9:
	bl	_close
	mov	w0, #-1
LBB0_10:
	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
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PF_INET,4,2                    ; @PF_INET
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_INADDR_LOOPBACK,4,2            ; @INADDR_LOOPBACK
	.comm	_UDP_PORT1,4,2                  ; @UDP_PORT1
	.comm	_UDP_PORT2,4,2                  ; @UDP_PORT2
	.no_dead_strip	_udp_create
.subsections_via_symbols
