	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_regress_get_socket_port        ## -- Begin function regress_get_socket_port
	.p2align	4, 0x90
_regress_get_socket_port:               ## @regress_get_socket_port
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movl	$8, -4(%rbp)
	leaq	-16(%rbp), %rsi
	leaq	-4(%rbp), %rdx
	callq	_getsockname
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_4
## %bb.1:
	movq	-16(%rbp), %rdi
	movq	_AF_INET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdi
	je	LBB0_3
## %bb.2:
	movq	_AF_INET6@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdi
	jne	LBB0_4
LBB0_3:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ntohs
LBB0_4:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_AF_INET6,8,3                   ## @AF_INET6
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_regress_get_socket_port        ; -- Begin function regress_get_socket_port
	.p2align	2
_regress_get_socket_port:               ; @regress_get_socket_port
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	w8, #8
	str	w8, [sp, #4]
	add	x1, sp, #8
	add	x2, sp, #4
	bl	_getsockname
	cbnz	x0, LBB0_3
; %bb.1:
	ldr	x0, [sp, #8]
Lloh0:
	adrp	x8, _AF_INET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _AF_INET6@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AF_INET6@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.ne	LBB0_3
; %bb.2:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ntohs
	b	LBB0_4
LBB0_3:
	mov	w0, #-1
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_AF_INET6,8,3                   ; @AF_INET6
.subsections_via_symbols
