	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function udp_socket_create
_udp_socket_create:                     ## @udp_socket_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	(%rdi), %r14
	movl	12(%r14), %r8d
	testl	%r8d, %r8d
	jne	LBB0_2
## %bb.1:
	movq	_AF_UNSPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
LBB0_2:
	xorl	%esi, %esi
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.3:
	cmpb	$0, (%rcx)
	cmovneq	%rcx, %rsi
LBB0_4:
	movl	8(%r14), %edx
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_AI_PASSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	callq	_ff_ip_resolve_host
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %r15
	leaq	L_.str(%rip), %r13
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %r12
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r14)
	movl	$0, %edx
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_IPPROTO_UDPLITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	8(%r12), %edi
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ff_socket
	cmpl	$-1, %eax
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r15), %esi
	xorl	%edi, %edi
	movq	%r13, %rdx
	callq	_ff_log_net_error
	movq	16(%r12), %r12
	testq	%r12, %r12
	jne	LBB0_7
	jmp	LBB0_11
LBB0_5:
	movl	$-1, %ebx
	jmp	LBB0_15
LBB0_12:
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_11
## %bb.13:
	movl	(%r12), %edx
	movl	4(%r12), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_memcpy
	movl	(%r12), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_14
LBB0_11:
	movl	$-1, %ebx
LBB0_14:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_freeaddrinfo
LBB0_15:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_UNSPEC,4,2                  ## @AF_UNSPEC
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_AI_PASSIVE,4,2                 ## @AI_PASSIVE
	.comm	_IPPROTO_UDPLITE,4,2            ## @IPPROTO_UDPLITE
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"socket"

	.no_dead_strip	_udp_socket_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function udp_socket_create
_udp_socket_create:                     ; @udp_socket_create
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	ldr	x24, [x0]
Lloh0:
	adrp	x8, _AF_UNSPEC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AF_UNSPEC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x24, #12]
	cmp	w9, #0
	csel	w4, w8, w9, eq
	cbz	x3, LBB0_2
; %bb.1:
	ldrb	w8, [x3]
	cmp	w8, #0
	csel	x1, xzr, x3, eq
	b	LBB0_3
LBB0_2:
	mov	x1, #0
LBB0_3:
	ldr	w2, [x24, #8]
Lloh3:
	adrp	x25, _SOCK_DGRAM@GOTPAGE
Lloh4:
	ldr	x25, [x25, _SOCK_DGRAM@GOTPAGEOFF]
	ldr	w3, [x25]
Lloh5:
	adrp	x8, _AI_PASSIVE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AI_PASSIVE@GOTPAGEOFF]
Lloh7:
	ldr	w5, [x8]
	bl	_ff_ip_resolve_host
	cbz	x0, LBB0_7
; %bb.4:
	mov	x21, x0
Lloh8:
	adrp	x27, _IPPROTO_UDPLITE@GOTPAGE
Lloh9:
	ldr	x27, [x27, _IPPROTO_UDPLITE@GOTPAGEOFF]
Lloh10:
	adrp	x28, _AV_LOG_ERROR@GOTPAGE
Lloh11:
	ldr	x28, [x28, _AV_LOG_ERROR@GOTPAGEOFF]
	mov	x26, x0
Lloh12:
	adrp	x23, l_.str@PAGE
Lloh13:
	add	x23, x23, l_.str@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	w0, [x26, #8]
	ldr	w1, [x25]
	ldr	w9, [x27]
	cmp	x8, #0
	csel	w2, wzr, w9, eq
	bl	_ff_socket
	cmn	w0, #1
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x28]
	mov	x0, #0
	mov	x2, x23
	bl	_ff_log_net_error
	ldr	x26, [x26, #16]
	cbnz	x26, LBB0_5
	b	LBB0_10
LBB0_7:
	mov	w22, #-1
	b	LBB0_12
LBB0_8:
	mov	x22, x0
	tbnz	w0, #31, LBB0_10
; %bb.9:
	ldp	w2, w1, [x26]
	mov	x0, x20
	bl	_memcpy
	ldr	w8, [x26]
	str	w8, [x19]
	b	LBB0_11
LBB0_10:
	mov	w22, #-1
LBB0_11:
	mov	x0, x21
	bl	_freeaddrinfo
LBB0_12:
	mov	x0, x22
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_UNSPEC,4,2                  ; @AF_UNSPEC
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_AI_PASSIVE,4,2                 ; @AI_PASSIVE
	.comm	_IPPROTO_UDPLITE,4,2            ; @IPPROTO_UDPLITE
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"socket"

	.no_dead_strip	_udp_socket_create
.subsections_via_symbols
