	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sotoxsocket                    ## -- Begin function sotoxsocket
	.p2align	4, 0x90
_sotoxsocket:                           ## @sotoxsocket
	.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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	movl	$88, %esi
	callq	_bzero
	movl	$88, (%rbx)
	movq	%r14, 8(%rbx)
	movl	64(%r14), %eax
	movl	%eax, 80(%rbx)
	movl	(%r14), %eax
	movl	%eax, 16(%rbx)
	movl	60(%r14), %eax
	movl	%eax, 76(%rbx)
	movl	56(%r14), %eax
	movl	%eax, 72(%rbx)
	movq	48(%r14), %rax
	movq	%rax, 24(%rbx)
	movq	40(%r14), %rdi
	leaq	-48(%rbp), %rsi
	movl	$24, %edx
	callq	_kread
	movl	$-1, %r15d
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	movl	-32(%rbp), %eax
	movl	%eax, 68(%rbx)
	movq	-40(%rbp), %rdi
	leaq	-72(%rbp), %rsi
	movl	$24, %edx
	callq	_kread
	testq	%rax, %rax
	jne	LBB0_6
## %bb.2:
	movl	-72(%rbp), %eax
	movl	%eax, 64(%rbx)
	movl	32(%r14), %eax
	movl	%eax, 60(%rbx)
	movl	28(%r14), %eax
	movl	%eax, 56(%rbx)
	movq	_SO_ACCEPTCONN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_4
## %bb.3:
	movl	24(%r14), %eax
	movl	%eax, 52(%rbx)
	movl	20(%r14), %eax
	movl	%eax, 48(%rbx)
	movl	16(%r14), %eax
	movl	%eax, 44(%rbx)
	jmp	LBB0_5
LBB0_4:
	leaq	12(%r14), %rdi
	leaq	40(%rbx), %rsi
	callq	_sbtoxsockbuf
	leaq	8(%r14), %rdi
	leaq	36(%rbx), %rsi
	callq	_sbtoxsockbuf
	movl	4(%r14), %eax
	movl	%eax, 32(%rbx)
LBB0_5:
	xorl	%r15d, %r15d
LBB0_6:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SO_ACCEPTCONN,4,2              ## @SO_ACCEPTCONN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sotoxsocket                    ; -- Begin function sotoxsocket
	.p2align	2
_sotoxsocket:                           ; @sotoxsocket
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x1
	mov	x20, x0
	mov	w21, #88
	mov	x0, x1
	mov	w1, #88
	bl	_bzero
	str	w21, [x19]
	str	x20, [x19, #8]
	ldr	w8, [x20, #64]
	str	w8, [x19, #80]
	ldr	w8, [x20]
	str	w8, [x19, #16]
	ldr	d0, [x20, #56]
	str	d0, [x19, #72]
	ldr	x8, [x20, #48]
	str	x8, [x19, #24]
	ldr	x0, [x20, #40]
	add	x1, sp, #24
	mov	w2, #24
	bl	_kread
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w8, [sp, #40]
	str	w8, [x19, #68]
	ldr	x0, [sp, #32]
	mov	x1, sp
	mov	w2, #24
	bl	_kread
	cbz	x0, LBB0_4
LBB0_2:
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_4:
	ldr	w8, [sp]
	str	w8, [x19, #64]
	ldur	d0, [x20, #28]
	str	d0, [x19, #56]
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _SO_ACCEPTCONN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SO_ACCEPTCONN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	mov	w0, #0
	ldr	w8, [x20, #24]
	str	w8, [x19, #52]
	ldr	d0, [x20, #16]
	stur	d0, [x19, #44]
	b	LBB0_3
LBB0_6:
	add	x0, x20, #12
	add	x1, x19, #40
	bl	_sbtoxsockbuf
	add	x0, x20, #8
	add	x1, x19, #36
	bl	_sbtoxsockbuf
	mov	w0, #0
	ldr	w8, [x20, #4]
	str	w8, [x19, #32]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SO_ACCEPTCONN,4,2              ; @SO_ACCEPTCONN
.subsections_via_symbols
