	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ip4_datagram_connect           ## -- Begin function ip4_datagram_connect
	.p2align	4, 0x90
_ip4_datagram_connect:                  ## @ip4_datagram_connect
	.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
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_inet_sk
	cmpl	$15, %ebx
	ja	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	%rax, %r14
	movq	(%r15), %rax
	movq	_AF_INET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	movq	%r12, %rdi
	callq	_sk_dst_reset
	movl	(%r12), %ebx
	movq	24(%r14), %r13
	movl	12(%r15), %edi
	callq	_ipv4_is_multicast
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	testl	%ebx, %ebx
	jne	LBB0_9
## %bb.8:
	movl	(%r14), %ebx
LBB0_9:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	testq	%r13, %r13
	jne	LBB0_11
## %bb.10:
	movq	40(%r14), %r13
	jmp	LBB0_11
LBB0_4:
	movq	_EAFNOSUPPORT@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_22:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
LBB0_11:
	movl	12(%r15), %ebx
	movq	%r12, %rdi
	callq	_RT_CONN_FLAGS
	movl	8(%r12), %r9d
	movl	32(%r14), %r10d
	movl	8(%r15), %r11d
	leaq	-56(%rbp), %rdi
	movl	%ebx, %esi
	movq	%r13, %rdx
	movl	%eax, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	pushq	$1
	pushq	%r12
	pushq	%r11
	pushq	%r10
	callq	_ip_route_connect
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_14
## %bb.12:
	movl	%eax, %ebx
	movq	_ENETUNREACH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_22
## %bb.13:
	movq	%r12, %rdi
	callq	_sock_net
	movq	_IPSTATS_MIB_OUTNOROUTES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_IP_INC_STATS_BH
	jmp	LBB0_22
LBB0_14:
	movq	-56(%rbp), %rax
	movq	_RTCF_BROADCAST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_17
## %bb.15:
	movq	_SOCK_BROADCAST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_sock_flag
	testl	%eax, %eax
	je	LBB0_16
LBB0_17:
	cmpq	$0, 24(%r14)
	jne	LBB0_19
## %bb.18:
	movq	-56(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, 24(%r14)
LBB0_19:
	cmpq	$0, 16(%r14)
	movq	-56(%rbp), %rsi
	jne	LBB0_21
## %bb.20:
	movq	16(%rsi), %rax
	movq	%rax, 16(%r14)
LBB0_21:
	movl	8(%rsi), %eax
	movl	%eax, 12(%r14)
	movl	8(%r15), %eax
	movl	%eax, 8(%r14)
	movq	_TCP_ESTABLISHED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	addq	$4, %rsi
	movq	%r12, %rdi
	callq	_sk_dst_set
	xorl	%ebx, %ebx
	jmp	LBB0_22
LBB0_16:
	movq	-56(%rbp), %rdi
	callq	_ip_rt_put
	movq	_EACCES@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_EAFNOSUPPORT,4,2               ## @EAFNOSUPPORT
	.comm	_ENETUNREACH,4,2                ## @ENETUNREACH
	.comm	_IPSTATS_MIB_OUTNOROUTES,4,2    ## @IPSTATS_MIB_OUTNOROUTES
	.comm	_RTCF_BROADCAST,4,2             ## @RTCF_BROADCAST
	.comm	_SOCK_BROADCAST,4,2             ## @SOCK_BROADCAST
	.comm	_EACCES,4,2                     ## @EACCES
	.comm	_TCP_ESTABLISHED,4,2            ## @TCP_ESTABLISHED
	.comm	_jiffies,4,2                    ## @jiffies
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ip4_datagram_connect           ; -- Begin function ip4_datagram_connect
	.p2align	2
_ip4_datagram_connect:                  ; @ip4_datagram_connect
	.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
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	bl	_inet_sk
	cmp	w22, #15
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_12
LBB0_2:
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _AF_INET@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AF_INET@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.3:
	mov	x20, x0
	mov	x0, x19
	bl	_sk_dst_reset
	ldr	w22, [x19]
	ldr	x23, [x20, #24]
	ldr	w0, [x21, #12]
	bl	_ipv4_is_multicast
	cbz	x0, LBB0_8
; %bb.4:
	cbnz	w22, LBB0_6
; %bb.5:
	ldr	w22, [x20]
LBB0_6:
	cbnz	x23, LBB0_8
; %bb.7:
	ldr	x23, [x20, #40]
LBB0_8:
	ldr	w24, [x21, #12]
	mov	x0, x19
	bl	_RT_CONN_FLAGS
	mov	x3, x0
	ldr	w5, [x19, #8]
	ldr	w6, [x20, #32]
	ldr	w7, [x21, #8]
	mov	w8, #1
	str	w8, [sp, #8]
	str	x19, [sp]
	add	x0, sp, #24
	mov	x1, x24
	mov	x2, x23
	mov	x4, x22
	bl	_ip_route_connect
	cbz	w0, LBB0_14
; %bb.9:
	mov	x22, x0
Lloh5:
	adrp	x8, _ENETUNREACH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENETUNREACH@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_13
; %bb.10:
	mov	x0, x19
	bl	_sock_net
Lloh8:
	adrp	x8, _IPSTATS_MIB_OUTNOROUTES@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IPSTATS_MIB_OUTNOROUTES@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_IP_INC_STATS_BH
	b	LBB0_13
LBB0_11:
Lloh11:
	adrp	x8, _EAFNOSUPPORT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EAFNOSUPPORT@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_13:
	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
	add	sp, sp, #96
	ret
LBB0_14:
	ldr	x8, [sp, #24]
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _RTCF_BROADCAST@GOTPAGE
Lloh14:
	ldr	x9, [x9, _RTCF_BROADCAST@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.15:
Lloh16:
	adrp	x8, _SOCK_BROADCAST@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SOCK_BROADCAST@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sock_flag
	cbz	w0, LBB0_21
LBB0_16:
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_18
; %bb.17:
	ldr	x8, [sp, #24]
	ldr	x8, [x8, #16]
	str	x8, [x20, #24]
LBB0_18:
	ldr	x9, [x20, #16]
	ldr	x8, [sp, #24]
	cbnz	x9, LBB0_20
; %bb.19:
	ldr	x9, [x8, #16]
	str	x9, [x20, #16]
LBB0_20:
	ldr	w9, [x8, #8]
	str	w9, [x20, #12]
	ldr	w9, [x21, #8]
Lloh19:
	adrp	x10, _TCP_ESTABLISHED@GOTPAGE
Lloh20:
	ldr	x10, [x10, _TCP_ESTABLISHED@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	str	w10, [x19, #4]
Lloh22:
	adrp	x10, _jiffies@GOTPAGE
Lloh23:
	ldr	x10, [x10, _jiffies@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	stp	w10, w9, [x20, #4]
	add	x1, x8, #4
	mov	x0, x19
	bl	_sk_dst_set
	mov	w22, #0
	b	LBB0_13
LBB0_21:
	ldr	x0, [sp, #24]
	bl	_ip_rt_put
Lloh25:
	adrp	x8, _EACCES@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_EAFNOSUPPORT,4,2               ; @EAFNOSUPPORT
	.comm	_ENETUNREACH,4,2                ; @ENETUNREACH
	.comm	_IPSTATS_MIB_OUTNOROUTES,4,2    ; @IPSTATS_MIB_OUTNOROUTES
	.comm	_RTCF_BROADCAST,4,2             ; @RTCF_BROADCAST
	.comm	_SOCK_BROADCAST,4,2             ; @SOCK_BROADCAST
	.comm	_EACCES,4,2                     ; @EACCES
	.comm	_TCP_ESTABLISHED,4,2            ; @TCP_ESTABLISHED
	.comm	_jiffies,4,2                    ; @jiffies
.subsections_via_symbols
