	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sd_is_socket_internal
_sd_is_socket_internal:                 ## @sd_is_socket_internal
	.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
	movl	%esi, %eax
	orl	%edi, %eax
	js	LBB0_12
## %bb.1:
	movl	%edx, %r14d
	movl	%esi, %r12d
	movl	%edi, %r15d
	leaq	-48(%rbp), %rsi
	callq	_fstat
	testq	%rax, %rax
	js	LBB0_13
## %bb.2:
	movl	-48(%rbp), %edi
	callq	_S_ISSOCK
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_15
## %bb.3:
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.4:
	movl	$0, -40(%rbp)
	movl	$4, -36(%rbp)
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SO_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rcx
	leaq	-36(%rbp), %r8
	movl	%r15d, %edi
	callq	_getsockopt
	testq	%rax, %rax
	js	LBB0_13
## %bb.5:
	cmpl	$4, -36(%rbp)
	jne	LBB0_12
## %bb.6:
	cmpl	%r12d, -40(%rbp)
	jne	LBB0_15
LBB0_7:
	testl	%r14d, %r14d
	js	LBB0_11
## %bb.8:
	movl	$0, -40(%rbp)
	movl	$4, -36(%rbp)
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SO_ACCEPTCONN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rcx
	leaq	-36(%rbp), %r8
	movl	%r15d, %edi
	callq	_getsockopt
	testq	%rax, %rax
	js	LBB0_13
## %bb.9:
	cmpl	$4, -36(%rbp)
	jne	LBB0_12
## %bb.10:
	cmpl	$0, -40(%rbp)
	setne	%al
	testl	%r14d, %r14d
	sete	%cl
	cmpb	%al, %cl
	je	LBB0_15
LBB0_11:
	movl	$1, %ebx
	jmp	LBB0_15
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_13:
	movq	_errno@GOTPCREL(%rip), %rax
LBB0_14:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	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
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_TYPE,4,2                    ## @SO_TYPE
	.comm	_SO_ACCEPTCONN,4,2              ## @SO_ACCEPTCONN
	.no_dead_strip	_sd_is_socket_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sd_is_socket_internal
_sd_is_socket_internal:                 ; @sd_is_socket_internal
	.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
	orr	w8, w1, w0
	tbnz	w8, #31, LBB0_12
; %bb.1:
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	add	x1, sp, #8
	bl	_fstat
	tbnz	x0, #63, LBB0_13
; %bb.2:
	ldr	w0, [sp, #8]
	bl	_S_ISSOCK
	cbz	w0, LBB0_15
; %bb.3:
	cbz	w21, LBB0_7
; %bb.4:
	mov	w8, #4
	stp	w8, wzr, [sp]
Lloh0:
	adrp	x8, _SOL_SOCKET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOL_SOCKET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _SO_TYPE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SO_TYPE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #4
	mov	x4, sp
	mov	x0, x20
	bl	_getsockopt
	tbnz	x0, #63, LBB0_13
; %bb.5:
	ldr	w8, [sp]
	cmp	w8, #4
	b.ne	LBB0_12
; %bb.6:
	ldr	w8, [sp, #4]
	cmp	w8, w21
	b.ne	LBB0_16
LBB0_7:
	tbnz	w19, #31, LBB0_11
; %bb.8:
	mov	w8, #4
	stp	w8, wzr, [sp]
Lloh6:
	adrp	x8, _SOL_SOCKET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SOL_SOCKET@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _SO_ACCEPTCONN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SO_ACCEPTCONN@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	add	x3, sp, #4
	mov	x4, sp
	mov	x0, x20
	bl	_getsockopt
	tbnz	x0, #63, LBB0_13
; %bb.9:
	ldr	w8, [sp]
	cmp	w8, #4
	b.ne	LBB0_12
; %bb.10:
	ldr	w8, [sp, #4]
	cmp	w8, #0
	cset	w8, ne
	cmp	w19, #0
	cset	w9, eq
	cmp	w9, w8
	b.eq	LBB0_16
LBB0_11:
	mov	w0, #1
	b	LBB0_15
LBB0_12:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh14:
	adrp	x8, _errno@GOTPAGE
Lloh15:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	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
LBB0_16:
	mov	w0, #0
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_TYPE,4,2                    ; @SO_TYPE
	.comm	_SO_ACCEPTCONN,4,2              ; @SO_ACCEPTCONN
	.no_dead_strip	_sd_is_socket_internal
.subsections_via_symbols
