	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sd_is_socket                   ## -- Begin function sd_is_socket
	.p2align	4, 0x90
_sd_is_socket:                          ## @sd_is_socket
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%esi, %esi
	js	LBB0_1
## %bb.2:
	movl	%esi, %r14d
	movl	%edi, %r15d
	movl	%edx, %esi
	movl	%ecx, %edx
	callq	_sd_is_socket_internal
	testl	%eax, %eax
	jle	LBB0_3
## %bb.4:
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.6:
	leaq	-40(%rbp), %r12
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	$4, -36(%rbp)
	leaq	-36(%rbp), %rdx
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	_getsockname
	testq	%rax, %rax
	js	LBB0_7
## %bb.8:
	cmpl	$3, -36(%rbp)
	ja	LBB0_9
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_3:
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_5:
	movl	$1, %ebx
	jmp	LBB0_10
LBB0_7:
	movq	_errno@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_9:
	xorl	%ebx, %ebx
	cmpl	%r14d, -40(%rbp)
	sete	%bl
LBB0_10:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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                   ; -- Begin function sd_is_socket
	.p2align	2
_sd_is_socket:                          ; @sd_is_socket
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	tbnz	w1, #31, LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x1, x2
	mov	x2, x3
	bl	_sd_is_socket_internal
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.2:
	cbz	w19, LBB0_7
; %bb.3:
	mov	w21, #4
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	str	w21, [sp, #4]
	add	x1, sp, #8
	add	x2, sp, #4
	mov	x0, x20
	bl	_getsockname
	tbnz	x0, #63, LBB0_8
; %bb.4:
	ldr	w8, [sp, #4]
	cmp	w8, #3
	b.hi	LBB0_9
LBB0_5:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_7:
	mov	w0, #1
	b	LBB0_10
LBB0_8:
Lloh2:
	adrp	x8, _errno@GOTPAGE
Lloh3:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
	b	LBB0_6
LBB0_9:
	ldr	w8, [sp, #8]
	cmp	w8, w19
	cset	w0, eq
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
