	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rose_accept
_rose_accept:                           ## @rose_accept
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_wait@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DEFINE_WAIT
	movq	(%rbx), %r13
	testq	%r13, %r13
	je	LBB0_1
## %bb.2:
	movq	%r13, %rdi
	callq	_lock_sock
	movq	(%r13), %rax
	movq	_SOCK_SEQPACKET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.5:
	movq	8(%r13), %rax
	movq	_TCP_LISTEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.6:
	movl	20(%r13), %edi
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_wait@GOTPCREL(%rip), %rsi
	callq	_prepare_to_wait
	leaq	24(%r13), %r12
	movq	%r12, %rdi
	callq	_skb_dequeue
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_8
LBB0_7:
	movl	20(%r13), %edi
	movq	_wait@GOTPCREL(%rip), %rsi
	callq	_finish_wait
LBB0_17:
	movq	(%rbx), %rdi
	movq	%r14, %rsi
	callq	_sock_graft
	movq	$0, (%rbx)
	movq	%rbx, %rdi
	callq	_kfree_skb
	decl	16(%r13)
	xorl	%ebx, %ebx
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	jne	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_signal_pending
	testl	%eax, %eax
	jne	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r13, %rdi
	callq	_release_sock
	xorl	%eax, %eax
	callq	_schedule
	movq	%r13, %rdi
	callq	_lock_sock
	movl	20(%r13), %edi
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_wait@GOTPCREL(%rip), %rsi
	callq	_prepare_to_wait
	movq	%r12, %rdi
	callq	_skb_dequeue
	testq	%rax, %rax
	je	LBB0_8
## %bb.15:
	movq	%rax, %rbx
	jmp	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_3:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_20:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_18:
	movq	%r13, %rdi
	callq	_release_sock
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_13:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %ebx
	movl	20(%r13), %edi
	movq	_wait@GOTPCREL(%rip), %rsi
	callq	_finish_wait
	testl	%ebx, %ebx
	je	LBB0_16
## %bb.11:
	negl	%ebx
	jmp	LBB0_18
LBB0_16:
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_wait,4,2                       ## @wait
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SOCK_SEQPACKET,8,3             ## @SOCK_SEQPACKET
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_TCP_LISTEN,8,3                 ## @TCP_LISTEN
	.comm	_TASK_INTERRUPTIBLE,4,2         ## @TASK_INTERRUPTIBLE
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_EWOULDBLOCK,4,2                ## @EWOULDBLOCK
	.comm	_current,4,2                    ## @current
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.no_dead_strip	_rose_accept
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rose_accept
_rose_accept:                           ; @rose_accept
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _wait@GOTPAGE
Lloh1:
	ldr	x8, [x8, _wait@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_DEFINE_WAIT
	ldr	x19, [x19]
	cbz	x19, LBB0_6
; %bb.1:
	mov	x0, x19
	bl	_lock_sock
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _SOCK_SEQPACKET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SOCK_SEQPACKET@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.2:
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _TCP_LISTEN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TCP_LISTEN@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.3:
	ldr	w0, [x19, #20]
Lloh9:
	adrp	x25, _TASK_INTERRUPTIBLE@GOTPAGE
Lloh10:
	ldr	x25, [x25, _TASK_INTERRUPTIBLE@GOTPAGEOFF]
	ldr	w2, [x25]
Lloh11:
	adrp	x1, _wait@GOTPAGE
Lloh12:
	ldr	x1, [x1, _wait@GOTPAGEOFF]
	bl	_prepare_to_wait
	add	x22, x19, #24
	mov	x0, x22
	bl	_skb_dequeue
	mov	x24, x0
	cbz	x0, LBB0_12
LBB0_4:
	ldr	w0, [x19, #20]
Lloh13:
	adrp	x1, _wait@GOTPAGE
Lloh14:
	ldr	x1, [x1, _wait@GOTPAGEOFF]
	bl	_finish_wait
LBB0_5:
	ldr	x0, [x24]
	mov	x1, x20
	bl	_sock_graft
	str	xzr, [x24]
	mov	x0, x24
	bl	_kfree_skb
	mov	w20, #0
	ldr	w8, [x19, #16]
	sub	w8, w8, #1
	str	w8, [x19, #16]
	b	LBB0_10
LBB0_6:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_11
LBB0_7:
Lloh18:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_10:
	mov	x0, x19
	bl	_release_sock
LBB0_11:
	mov	x0, x20
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh22:
	adrp	x27, _O_NONBLOCK@GOTPAGE
Lloh23:
	ldr	x27, [x27, _O_NONBLOCK@GOTPAGEOFF]
Lloh24:
	adrp	x26, _EWOULDBLOCK@GOTPAGE
Lloh25:
	ldr	x26, [x26, _EWOULDBLOCK@GOTPAGEOFF]
Lloh26:
	adrp	x28, _current@GOTPAGE
Lloh27:
	ldr	x28, [x28, _current@GOTPAGEOFF]
Lloh28:
	adrp	x23, _wait@GOTPAGE
Lloh29:
	ldr	x23, [x23, _wait@GOTPAGEOFF]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x27]
	tst	w8, w21
	b.ne	LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [x28]
	bl	_signal_pending
	cbnz	w0, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x19
	bl	_release_sock
	bl	_schedule
	mov	x0, x19
	bl	_lock_sock
	ldr	w0, [x19, #20]
	ldr	w2, [x25]
	mov	x1, x23
	bl	_prepare_to_wait
	mov	x0, x22
	bl	_skb_dequeue
	cbz	x0, LBB0_13
; %bb.16:
	mov	x24, x0
	b	LBB0_4
LBB0_17:
Lloh30:
	adrp	x26, _ERESTARTSYS@GOTPAGE
Lloh31:
	ldr	x26, [x26, _ERESTARTSYS@GOTPAGEOFF]
LBB0_18:
	ldr	w21, [x26]
	ldr	w0, [x19, #20]
Lloh32:
	adrp	x1, _wait@GOTPAGE
Lloh33:
	ldr	x1, [x1, _wait@GOTPAGEOFF]
	bl	_finish_wait
	cbz	w21, LBB0_20
; %bb.19:
	neg	w20, w21
	b	LBB0_10
LBB0_20:
	mov	x24, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_wait,4,2                       ; @wait
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SOCK_SEQPACKET,8,3             ; @SOCK_SEQPACKET
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_TCP_LISTEN,8,3                 ; @TCP_LISTEN
	.comm	_TASK_INTERRUPTIBLE,4,2         ; @TASK_INTERRUPTIBLE
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_EWOULDBLOCK,4,2                ; @EWOULDBLOCK
	.comm	_current,4,2                    ; @current
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.no_dead_strip	_rose_accept
.subsections_via_symbols
