	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function udp_sockport
_udp_sockport:                          ## @udp_sockport
	.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	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%r8, %r15
	movl	%ecx, %r14d
	movl	%edx, %r13d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	callq	_addr_is_ip6
	movl	%r14d, %edi
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	callq	_htons
	movq	%rax, -64(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	testl	%r13d, %r13d
	je	LBB0_2
## %bb.3:
	leaq	-80(%rbp), %rdi
	movl	%r13d, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_sai6_putrandom
	movl	$1, %eax
	jmp	LBB0_4
LBB0_5:
	callq	_htons
	movq	%rax, (%rbx)
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rax
	movq	%rbx, %rdx
	movl	%r12d, %ecx
	movl	$1, %r8d
	movq	%r15, %r9
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	%rax
	jmp	LBB0_6
LBB0_2:
	xorl	%eax, %eax
LBB0_4:
	movq	_AF_INET6@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-44(%rbp), %rbx
	leaq	-80(%rbp), %rdx
	movl	%r12d, %ecx
	movl	$1, %r8d
	movq	%r15, %r9
	pushq	$0
	pushq	%rax
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	$0
	pushq	%rbx
LBB0_6:
	callq	_create_udp_sock
	addq	$64, %rsp
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET6,4,2                   ## @AF_INET6
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_AF_INET,4,2                    ## @AF_INET
	.no_dead_strip	_udp_sockport
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function udp_sockport
_udp_sockport:                          ; @udp_sockport
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x5
	mov	x19, x4
	mov	x24, x3
	mov	x23, x2
	mov	x20, x1
	mov	x21, x0
	bl	_addr_is_ip6
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x24
	bl	_htons
	stp	xzr, x0, [sp, #40]
	str	xzr, [sp, #32]
	cbz	w23, LBB0_4
; %bb.2:
	add	x0, sp, #32
	mov	x1, x23
	mov	x2, x22
	bl	_sai6_putrandom
	mov	w8, #1
	b	LBB0_5
LBB0_3:
	mov	x0, x24
	bl	_htons
	str	x0, [x21]
Lloh0:
	adrp	x8, _AF_INET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	stp	xzr, xzr, [sp]
	sub	x6, x29, #52
	str	wzr, [sp, #24]
	str	xzr, [sp, #16]
	mov	x2, x21
	b	LBB0_6
LBB0_4:
	mov	w8, #0
LBB0_5:
Lloh6:
	adrp	x9, _AF_INET6@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AF_INET6@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x9]
Lloh9:
	adrp	x9, _SOCK_DGRAM@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SOCK_DGRAM@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x9]
	stp	xzr, xzr, [sp]
	add	x2, sp, #32
	sub	x6, x29, #52
	stp	w8, wzr, [sp, #20]
	str	wzr, [sp, #16]
LBB0_6:
	mov	x3, x20
	mov	w4, #1
	mov	x5, x19
	mov	w7, #0
	bl	_create_udp_sock
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET6,4,2                   ; @AF_INET6
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_AF_INET,4,2                    ; @AF_INET
	.no_dead_strip	_udp_sockport
.subsections_via_symbols
