	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iucv_sock_accept
_iucv_sock_accept:                      ## @iucv_sock_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, %r12d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_wait@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_DECLARE_WAITQUEUE
	movq	8(%rbx), %r15
	movq	_SINGLE_DEPTH_NESTING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_lock_sock_nested
	movq	(%r15), %rax
	movq	_IUCV_LISTEN@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_1
## %bb.2:
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	andl	(%rax), %r12d
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_sock_rcvtimeo
	movq	%rax, %rbx
	movl	8(%r15), %edi
	movq	_wait@GOTPCREL(%rip), %rsi
	callq	_add_wait_queue_exclusive
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_iucv_accept_dequeue
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r12), %edi
	callq	_set_current_state
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_release_sock
	movq	%rbx, %rdi
	callq	_schedule_timeout
	movq	%rax, %rbx
	movq	_SINGLE_DEPTH_NESTING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_lock_sock_nested
	movq	(%r15), %rax
	cmpq	(%r13), %rax
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_signal_pending
	testq	%rax, %rax
	je	LBB0_3
## %bb.11:
	movq	%rbx, %rdi
	callq	_sock_intr_errno
	movl	%eax, %ebx
	jmp	LBB0_12
LBB0_1:
	movq	_EBADFD@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_4:
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_6:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_9:
	movq	_EBADFD@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movq	_TASK_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_current_state
	movl	8(%r15), %edi
	movq	_wait@GOTPCREL(%rip), %rsi
	callq	_remove_wait_queue
	testl	%ebx, %ebx
	jne	LBB0_14
## %bb.13:
	movq	_SS_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	xorl	%ebx, %ebx
LBB0_14:
	movq	%r15, %rdi
	callq	_release_sock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wait,4,2                       ## @wait
	.comm	_current,4,2                    ## @current
	.comm	_SINGLE_DEPTH_NESTING,4,2       ## @SINGLE_DEPTH_NESTING
	.comm	_IUCV_LISTEN,8,3                ## @IUCV_LISTEN
	.comm	_EBADFD,4,2                     ## @EBADFD
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_TASK_INTERRUPTIBLE,4,2         ## @TASK_INTERRUPTIBLE
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_TASK_RUNNING,4,2               ## @TASK_RUNNING
	.comm	_SS_CONNECTED,4,2               ## @SS_CONNECTED
	.no_dead_strip	_iucv_sock_accept
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iucv_sock_accept
_iucv_sock_accept:                      ; @iucv_sock_accept
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _wait@GOTPAGE
Lloh1:
	ldr	x8, [x8, _wait@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x22, _current@GOTPAGE
Lloh4:
	ldr	x22, [x22, _current@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_DECLARE_WAITQUEUE
	ldr	x19, [x19, #8]
Lloh5:
	adrp	x23, _SINGLE_DEPTH_NESTING@GOTPAGE
Lloh6:
	ldr	x23, [x23, _SINGLE_DEPTH_NESTING@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_lock_sock_nested
	ldr	x8, [x19]
Lloh7:
	adrp	x24, _IUCV_LISTEN@GOTPAGE
Lloh8:
	ldr	x24, [x24, _IUCV_LISTEN@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.1:
Lloh9:
	adrp	x8, _O_NONBLOCK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _O_NONBLOCK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w1, w8, w21
	mov	x0, x19
	bl	_sock_rcvtimeo
	mov	x21, x0
	ldr	w0, [x19, #8]
Lloh12:
	adrp	x1, _wait@GOTPAGE
Lloh13:
	ldr	x1, [x1, _wait@GOTPAGEOFF]
	bl	_add_wait_queue_exclusive
Lloh14:
	adrp	x25, _TASK_INTERRUPTIBLE@GOTPAGE
Lloh15:
	ldr	x25, [x25, _TASK_INTERRUPTIBLE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_iucv_accept_dequeue
	cbnz	x0, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x25]
	bl	_set_current_state
	cbz	x21, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_release_sock
	mov	x0, x21
	bl	_schedule_timeout
	mov	x21, x0
	ldr	w1, [x23]
	mov	x0, x19
	bl	_lock_sock_nested
	ldr	x8, [x19]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x22]
	bl	_signal_pending
	cbz	x0, LBB0_2
; %bb.6:
	mov	x0, x21
	bl	_sock_intr_errno
	mov	x21, x0
	b	LBB0_12
LBB0_7:
Lloh16:
	adrp	x8, _EBADFD@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EBADFD@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_14
LBB0_8:
	mov	w21, #0
	b	LBB0_12
LBB0_9:
Lloh19:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh21:
	adrp	x8, _EBADFD@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EBADFD@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_12:
Lloh23:
	adrp	x8, _TASK_RUNNING@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TASK_RUNNING@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_set_current_state
	ldr	w0, [x19, #8]
Lloh26:
	adrp	x1, _wait@GOTPAGE
Lloh27:
	ldr	x1, [x1, _wait@GOTPAGEOFF]
	bl	_remove_wait_queue
	cbnz	w21, LBB0_14
; %bb.13:
Lloh28:
	adrp	x8, _SS_CONNECTED@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SS_CONNECTED@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_14:
	mov	x0, x19
	bl	_release_sock
	mov	x0, x21
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_wait,4,2                       ; @wait
	.comm	_current,4,2                    ; @current
	.comm	_SINGLE_DEPTH_NESTING,4,2       ; @SINGLE_DEPTH_NESTING
	.comm	_IUCV_LISTEN,8,3                ; @IUCV_LISTEN
	.comm	_EBADFD,4,2                     ; @EBADFD
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_TASK_INTERRUPTIBLE,4,2         ; @TASK_INTERRUPTIBLE
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_TASK_RUNNING,4,2               ; @TASK_RUNNING
	.comm	_SS_CONNECTED,4,2               ; @SS_CONNECTED
	.no_dead_strip	_iucv_sock_accept
.subsections_via_symbols
