	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_udp_lib_get_port               ## -- Begin function udp_lib_get_port
	.p2align	4, 0x90
_udp_lib_get_port:                      ## @udp_lib_get_port
	.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	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %r13
	movq	8(%rdi), %rax
	movq	(%rax), %rbx
	callq	_sock_net
	testl	%r15d, %r15d
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	(%rbx), %r12
	movzwl	%r15w, %ebx
	movq	%rax, %rdi
	movl	%ebx, %esi
	callq	_udp_hashfn
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	(%r12,%rax,8), %r12
	movq	%r12, %rdi
	callq	_spin_lock_bh
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	movq	%r13, %r8
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	callq	_udp_lib_lport_inuse
	movl	$1, %ebx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_inet_sk
	movw	%r15w, (%rax)
	movw	%r15w, (%r13)
	movq	%r13, %rdi
	callq	_sk_unhashed
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	(%rbx,%r14,8), %rsi
	addq	$4, %rsi
	movq	%r13, %rdi
	callq	_sk_nulls_add_node_rcu
	movq	%r13, %rdi
	callq	_sock_net
	movq	8(%r13), %rsi
	movq	%rax, %rdi
	movl	$1, %edx
	callq	_sock_prot_inuse_add
LBB0_5:
	xorl	%ebx, %ebx
LBB0_6:
	movq	%r12, %rdi
	callq	_spin_unlock_bh
	jmp	LBB0_7
LBB0_1:
	movq	_bitmap@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_PORTS_PER_CHAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_DECLARE_BITMAP
	leaq	-72(%rbp), %rdi
	leaq	-68(%rbp), %rsi
	callq	_inet_get_local_port_range
	xorl	%eax, %eax
	callq	_net_random
	movl	$1, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bitmap,8,3                     ## @bitmap
	.comm	_PORTS_PER_CHAIN,4,2            ## @PORTS_PER_CHAIN
	.comm	_UDP_HTABLE_SIZE,4,2            ## @UDP_HTABLE_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_udp_lib_get_port               ; -- Begin function udp_lib_get_port
	.p2align	2
_udp_lib_get_port:                      ; @udp_lib_get_port
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x19, [x8]
	bl	_sock_net
	cbz	w21, LBB0_3
; %bb.1:
	mov	x24, x0
	ldr	x25, [x19]
	mov	x1, x21
	bl	_udp_hashfn
	mov	x23, x0
	add	x19, x25, x0, lsl #3
	mov	x0, x19
	bl	_spin_lock_bh
	mov	x0, x24
	mov	x1, x21
	mov	x2, x19
	mov	x3, #0
	mov	x4, x20
	mov	x5, x22
	bl	_udp_lib_lport_inuse
	cbz	x0, LBB0_4
; %bb.2:
	mov	w20, #1
	b	LBB0_7
LBB0_3:
Lloh0:
	adrp	x8, _bitmap@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bitmap@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
Lloh3:
	adrp	x8, _PORTS_PER_CHAIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PORTS_PER_CHAIN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_DECLARE_BITMAP
	add	x0, sp, #12
	add	x1, sp, #8
	bl	_inet_get_local_port_range
	bl	_net_random
	mov	w20, #1
	b	LBB0_8
LBB0_4:
	mov	x0, x20
	bl	_inet_sk
	strh	w21, [x0]
	strh	w21, [x20]
	mov	x0, x20
	bl	_sk_unhashed
	cbz	x0, LBB0_6
; %bb.5:
	add	x8, x25, x23, lsl #3
	add	x1, x8, #4
	mov	x0, x20
	bl	_sk_nulls_add_node_rcu
	mov	x0, x20
	bl	_sock_net
	ldr	x1, [x20, #8]
	mov	w2, #1
	bl	_sock_prot_inuse_add
LBB0_6:
	mov	w20, #0
LBB0_7:
	mov	x0, x19
	bl	_spin_unlock_bh
LBB0_8:
	mov	x0, x20
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_bitmap,8,3                     ; @bitmap
	.comm	_PORTS_PER_CHAIN,4,2            ; @PORTS_PER_CHAIN
	.comm	_UDP_HTABLE_SIZE,4,2            ; @UDP_HTABLE_SIZE
.subsections_via_symbols
