	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_udp_flow
_create_udp_flow:                       ## @create_udp_flow
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rsi), %r13d
	movl	4(%rsi), %ebx
	movl	%ebx, %edi
	callq	_usnic_transport_get_socket
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR_OR_NULL
	testq	%rax, %rax
	je	LBB0_1
## %bb.14:
	movq	%r15, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_CAST                       ## TAILCALL
LBB0_1:
	leaq	-60(%rbp), %rsi
	leaq	-68(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	movq	%r15, %rdi
	callq	_usnic_transport_sock_get_addr
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.2:
	movl	-60(%rbp), %eax
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.4:
	movl	-68(%rbp), %esi
	movl	-64(%rbp), %edx
	leaq	-56(%rbp), %rdi
	callq	_usnic_fwd_init_udp_filter
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_init_filter_action
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.5:
	movl	(%r14), %edi
	leaq	-56(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	callq	_usnic_fwd_alloc_flow
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR_OR_NULL
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %r12d
	jmp	LBB0_12
LBB0_3:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_usnic_err
	movq	_EPERM@GOTPCREL(%rip), %rax
LBB0_9:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_12:
	movq	%r15, %rdi
	callq	_usnic_transport_put_socket
	movl	%r12d, %edi
	callq	_ERR_PTR
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.15:
	movq	%rbx, 24(%rax)
	movl	%r13d, (%rax)
	movq	%r15, 16(%rax)
	movq	%r14, 8(%rax)
	jmp	LBB0_13
LBB0_8:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	movq	%rbx, %rdi
	callq	_usnic_fwd_dealloc_flow
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_IPPROTO_UDP,4,2                ## @IPPROTO_UDP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Protocol for fd %d is not UDP"

	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_create_udp_flow
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_udp_flow
_create_udp_flow:                       ; @create_udp_flow
	.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	x20, x0
	ldp	w23, w21, [x1]
	mov	x0, x21
	bl	_usnic_transport_get_socket
	mov	x19, x0
	bl	_IS_ERR_OR_NULL
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	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
	b	_ERR_CAST
LBB0_2:
	add	x1, sp, #4
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x19
	bl	_usnic_transport_sock_get_addr
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.3:
	ldr	w8, [sp, #4]
Lloh0:
	adrp	x9, _IPPROTO_UDP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IPPROTO_UDP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.4:
	ldp	w2, w1, [sp, #8]
	add	x0, sp, #24
	bl	_usnic_fwd_init_udp_filter
	add	x1, sp, #16
	mov	x0, x20
	bl	_init_filter_action
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.5:
	ldr	w0, [x20]
	add	x1, sp, #24
	add	x2, sp, #16
	bl	_usnic_fwd_alloc_flow
	mov	x21, x0
	bl	_IS_ERR_OR_NULL
	cbz	x0, LBB0_12
; %bb.6:
	cbz	x21, LBB0_14
; %bb.7:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_10
LBB0_8:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_usnic_err
Lloh5:
	adrp	x8, _EPERM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_10:
	mov	x0, x19
	bl	_usnic_transport_put_socket
	mov	x0, x22
	bl	_ERR_PTR
LBB0_11:
	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_12:
Lloh7:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_15
; %bb.13:
	stp	x19, x21, [x0, #16]
	str	w23, [x0]
	str	x20, [x0, #8]
	b	LBB0_11
LBB0_14:
Lloh10:
	adrp	x8, _EFAULT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_9
LBB0_15:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w22, w8
	mov	x0, x21
	bl	_usnic_fwd_dealloc_flow
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IPPROTO_UDP,4,2                ; @IPPROTO_UDP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Protocol for fd %d is not UDP"

	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_create_udp_flow
.subsections_via_symbols
