	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sd_is_socket_inet              ## -- Begin function sd_is_socket_inet
	.p2align	4, 0x90
_sd_is_socket_inet:                     ## @sd_is_socket_inet
	.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
	movq	%r8, %r13
	movl	%esi, %r15d
	movl	%edi, %r12d
	movq	_AF_INET@GOTPCREL(%rip), %r14
	movq	_AF_INET6@GOTPCREL(%rip), %rax
	testl	%esi, %esi
	je	LBB0_4
## %bb.1:
	cmpl	%r15d, (%r14)
	je	LBB0_4
## %bb.2:
	cmpl	%r15d, (%rax)
	je	LBB0_4
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_15:
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_4:
	movl	%r12d, %edi
	movl	%edx, %esi
	movl	%ecx, %edx
	callq	_sd_is_socket_internal
	testl	%eax, %eax
	jle	LBB0_13
## %bb.5:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	leaq	-56(%rbp), %r13
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	$8, -44(%rbp)
	leaq	-44(%rbp), %rdx
	movl	%r12d, %edi
	movq	%r13, %rsi
	callq	_getsockname
	testq	%rax, %rax
	js	LBB0_14
## %bb.6:
	cmpl	$3, -44(%rbp)
	jbe	LBB0_3
## %bb.7:
	movl	-56(%rbp), %eax
	xorl	%ebx, %ebx
	cmpl	(%r14), %eax
	je	LBB0_9
## %bb.8:
	movq	_AF_INET6@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_16
LBB0_9:
	testl	%r15d, %r15d
	jle	LBB0_11
## %bb.10:
	cmpl	%r15d, %eax
	jne	LBB0_16
LBB0_11:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	jle	LBB0_17
## %bb.12:
	callq	_htons
	xorl	%ebx, %ebx
	cmpq	-56(%rbp), %rax
	sete	%bl
	jmp	LBB0_16
LBB0_13:
	movl	%eax, %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_errno@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_17:
	movl	$1, %ebx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_AF_INET6,4,2                   ## @AF_INET6
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sd_is_socket_inet              ; -- Begin function sd_is_socket_inet
	.p2align	2
_sd_is_socket_inet:                     ; @sd_is_socket_inet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x4
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _AF_INET@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AF_INET@GOTPAGEOFF]
Lloh2:
	adrp	x23, _AF_INET6@GOTPAGE
Lloh3:
	ldr	x23, [x23, _AF_INET6@GOTPAGEOFF]
	cbz	w1, LBB0_4
; %bb.1:
	ldr	w8, [x22]
	ldr	w9, [x23]
	cmp	w8, w20
	ccmp	w9, w20, #4, ne
	b.eq	LBB0_4
LBB0_2:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_4:
	mov	x0, x21
	mov	x1, x2
	mov	x2, x3
	bl	_sd_is_socket_internal
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.5:
	mov	w24, #8
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	str	w24, [sp, #4]
	add	x1, sp, #8
	add	x2, sp, #4
	mov	x0, x21
	bl	_getsockname
	tbnz	x0, #63, LBB0_12
; %bb.6:
	ldr	w8, [sp, #4]
	cmp	w8, #3
	b.ls	LBB0_2
; %bb.7:
	ldr	w8, [sp, #8]
	ldr	w9, [x22]
	ldr	w10, [x23]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_10
; %bb.8:
	cmp	w20, #1
	b.lt	LBB0_13
; %bb.9:
	cmp	w8, w20
	b.eq	LBB0_13
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_12:
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
	b	LBB0_3
LBB0_13:
	cmp	x19, #1
	b.lt	LBB0_15
; %bb.14:
	mov	x0, x19
	bl	_htons
	ldr	x8, [sp, #8]
	cmp	x0, x8
	cset	w0, eq
	b	LBB0_11
LBB0_15:
	mov	w0, #1
	b	LBB0_11
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_AF_INET6,4,2                   ; @AF_INET6
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
