	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function request_loop
_request_loop:                          ## @request_loop
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_EVENTS@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	shlq	$4, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	xorl	%eax, %eax
	callq	_kqueue
	movq	_kq_fd@GOTPCREL(%rip), %r12
	movl	%eax, (%r12)
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_2:
	movq	_SIGHUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EV_ADD@GOTPCREL(%rip), %r14
	movq	_EV_ENABLE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	orl	(%r14), %ecx
	subq	$8, %rsp
	movq	%r15, %rdi
	movl	$130, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	callq	_EV_SET
	addq	$16, %rsp
	leaq	16(%r15), %rdi
	movq	_SIGINT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	orl	(%r14), %ecx
	subq	$8, %rsp
	movl	$130, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	callq	_EV_SET
	addq	$16, %rsp
	leaq	32(%r15), %rdi
	movq	_SIGTERM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	orl	(%r14), %ecx
	subq	$8, %rsp
	movl	$130, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	callq	_EV_SET
	addq	$16, %rsp
	movq	%r15, %rdi
	addq	$48, %rdi
	movq	_targ_fd@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	orl	(%r14), %ecx
	subq	$8, %rsp
	movl	$131, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	callq	_EV_SET
	addq	$16, %rsp
	movl	(%r12), %edi
	movq	%r15, %rsi
	movl	$4, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_kevent
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_4:
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	_debug@GOTPCREL(%rip), %r14
	xorl	%r12d, %r12d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	_work_queue@GOTPCREL(%rip), %rdi
	callq	_TAILQ_EMPTY
	testl	%eax, %eax
	movl	$0, %r12d
	leaq	-80(%rbp), %rax
	cmoveq	%rax, %r12
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	testl	%ebx, %ebx
	jne	LBB0_48
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	movq	_kq_fd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %r8d
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r15, %rcx
	movq	%r12, %r9
	callq	_kevent
	testl	%eax, %eax
	js	LBB0_30
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	%eax, %ebx
	cmpl	(%r13), %eax
	jle	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	$1, %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_errx
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	testl	%ebx, %ebx
	je	LBB0_35
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	%ebx, %r12d
	shlq	$4, %r12
	xorl	%ebx, %ebx
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	movq	_EV_ERROR@GOTPCREL(%rip), %r13
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_14 Depth=2
	leaq	L_.str.9(%rip), %rdi
	xorl	%eax, %eax
	callq	_warnx
	cmpq	$0, (%r14)
	je	LBB0_13
LBB0_28:                                ##   in Loop: Header=BB0_14 Depth=2
	movl	4(%r15,%rbx), %esi
	leaq	L_.str.10(%rip), %rdi
	xorl	%eax, %eax
	callq	_warnx
LBB0_13:                                ##   in Loop: Header=BB0_14 Depth=2
	addq	$16, %rbx
	cmpq	%rbx, %r12
	je	LBB0_29
LBB0_14:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %eax
	testl	%eax, (%r15,%rbx)
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	movl	$1, %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_errx
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=2
	movl	4(%r15,%rbx), %esi
	cmpl	$130, %esi
	je	LBB0_22
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=2
	cmpl	$132, %esi
	je	LBB0_24
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=2
	cmpl	$131, %esi
	jne	LBB0_27
## %bb.19:                              ##   in Loop: Header=BB0_14 Depth=2
	cmpq	$0, (%r14)
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_14 Depth=2
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_warnx
LBB0_21:                                ##   in Loop: Header=BB0_14 Depth=2
	xorl	%eax, %eax
	callq	_handle_read
	cmpq	$0, (%r14)
	jne	LBB0_28
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_14 Depth=2
	cmpq	$0, (%r14)
	je	LBB0_12
## %bb.23:                              ##   in Loop: Header=BB0_14 Depth=2
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_warnx
	movl	$1, -52(%rbp)                   ## 4-byte Folded Spill
	cmpq	$0, (%r14)
	jne	LBB0_28
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_14 Depth=2
	movq	%r14, %r13
	cmpq	$0, (%r14)
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_14 Depth=2
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_warnx
LBB0_26:                                ##   in Loop: Header=BB0_14 Depth=2
	movq	8(%r15,%rbx), %rdi
	movq	(%rdi), %r14
	movq	_AIO_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	callq	_queue_io
	movl	(%r14), %edi
	callq	_run_queue
	addl	%eax, -56(%rbp)                 ## 4-byte Folded Spill
	movq	%r13, %r14
	movq	_EV_ERROR@GOTPCREL(%rip), %r13
	cmpq	$0, (%r14)
	jne	LBB0_28
	jmp	LBB0_13
LBB0_12:                                ##   in Loop: Header=BB0_14 Depth=2
	movl	$1, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_7 Depth=1
	leaq	-80(%rbp), %r12
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	movq	_MAX_EVENTS@GOTPCREL(%rip), %r13
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_6
	jmp	LBB0_36
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EINTR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_34
## %bb.31:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpq	$0, (%r14)
	je	LBB0_47
## %bb.32:                              ##   in Loop: Header=BB0_7 Depth=1
	xorl	%ebx, %ebx
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_6
LBB0_34:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	$1, %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_err
LBB0_35:                                ##   in Loop: Header=BB0_7 Depth=1
	xorl	%ebx, %ebx
LBB0_36:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_work_queue@GOTPCREL(%rip), %rdi
	callq	_TAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_5
## %bb.37:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %r12
	movl	(%rax), %esi
	cmpl	$128, %esi
	je	LBB0_40
## %bb.38:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$129, %esi
	jne	LBB0_50
## %bb.39:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, %rdi
	callq	_work_atio
	jmp	LBB0_41
LBB0_40:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, %rdi
	callq	_work_inot
LBB0_41:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	%eax, %ecx
	movq	_CAM_DEV_QFRZN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r12)
	je	LBB0_45
## %bb.42:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	%ecx, %r13d
	cmpq	$0, (%r14)
	je	LBB0_44
## %bb.43:                              ##   in Loop: Header=BB0_7 Depth=1
	leaq	L_.str.12(%rip), %rdi
	xorl	%eax, %eax
	callq	_warnx
LBB0_44:                                ##   in Loop: Header=BB0_7 Depth=1
	xorl	%eax, %eax
	callq	_rel_simq
	movl	%r13d, %ecx
	movq	_MAX_EVENTS@GOTPCREL(%rip), %r13
LBB0_45:                                ##   in Loop: Header=BB0_7 Depth=1
	testl	%ecx, %ecx
	jne	LBB0_5
## %bb.46:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_periph_links@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_work_queue@GOTPCREL(%rip), %rdi
	movq	%r12, %rsi
	callq	_TAILQ_REMOVE
	jmp	LBB0_5
LBB0_47:                                ##   in Loop: Header=BB0_7 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_48:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_51
## %bb.49:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_50:
	leaq	L_.str.11(%rip), %rdi
	xorl	%eax, %eax
	callq	_warnx
	xorl	%eax, %eax
	callq	_abort
LBB0_51:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_EVENTS,4,2                 ## @MAX_EVENTS
	.comm	_kq_fd,4,2                      ## @kq_fd
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"init kqueue"

	.comm	_SIGHUP,4,2                     ## @SIGHUP
	.comm	_EV_ADD,4,2                     ## @EV_ADD
	.comm	_EV_ENABLE,4,2                  ## @EV_ENABLE
	.comm	_SIGINT,4,2                     ## @SIGINT
	.comm	_SIGTERM,4,2                    ## @SIGTERM
	.comm	_targ_fd,4,2                    ## @targ_fd
L_.str.1:                               ## @.str.1
	.asciz	"kevent signal registration"

	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_debug,8,3                      ## @debug
L_.str.2:                               ## @.str.2
	.asciz	"EINTR, looping"

L_.str.3:                               ## @.str.3
	.asciz	"kevent failed"

L_.str.4:                               ## @.str.4
	.asciz	"kevent returned more events than allocated?"

	.comm	_EV_ERROR,4,2                   ## @EV_ERROR
L_.str.5:                               ## @.str.5
	.asciz	"kevent registration failed"

L_.str.6:                               ## @.str.6
	.asciz	"read ready"

L_.str.7:                               ## @.str.7
	.asciz	"aio ready"

	.comm	_AIO_DONE,4,2                   ## @AIO_DONE
L_.str.8:                               ## @.str.8
	.asciz	"signal ready, setting quit"

L_.str.9:                               ## @.str.9
	.asciz	"unknown event %d"

L_.str.10:                              ## @.str.10
	.asciz	"event %d done"

	.comm	_work_queue,4,2                 ## @work_queue
L_.str.11:                              ## @.str.11
	.asciz	"Unhandled ccb type %#x on workq"

	.comm	_CAM_DEV_QFRZN,4,2              ## @CAM_DEV_QFRZN
L_.str.12:                              ## @.str.12
	.asciz	"Queue frozen receiving CCB, releasing"

	.comm	_periph_links,4,2               ## @periph_links
	.no_dead_strip	_request_loop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function request_loop
_request_loop:                          ; @request_loop
	.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
	sub	sp, sp, #48
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x25, _MAX_EVENTS@GOTPAGE
Lloh4:
	ldr	x25, [x25, _MAX_EVENTS@GOTPAGEOFF]
	ldr	w8, [x25]
	lsl	x8, x8, #4
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x28, x9, x8
	mov	sp, x28
	bl	_kqueue
Lloh7:
	adrp	x24, _kq_fd@GOTPAGE
Lloh8:
	ldr	x24, [x24, _kq_fd@GOTPAGEOFF]
	str	w0, [x24]
	tbz	w0, #31, LBB0_2
; %bb.1:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
Lloh11:
	adrp	x8, _SIGHUP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SIGHUP@GOTPAGEOFF]
Lloh13:
	adrp	x19, _EV_ADD@GOTPAGE
Lloh14:
	ldr	x19, [x19, _EV_ADD@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	w8, [x19]
Lloh16:
	adrp	x20, _EV_ENABLE@GOTPAGE
Lloh17:
	ldr	x20, [x20, _EV_ENABLE@GOTPAGEOFF]
	ldr	w9, [x20]
	orr	w3, w9, w8
	mov	x0, x28
	mov	w2, #130
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	bl	_EV_SET
	add	x0, x28, #16
Lloh18:
	adrp	x8, _SIGINT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SIGINT@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	w8, [x19]
	ldr	w9, [x20]
	orr	w3, w9, w8
	mov	w2, #130
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	bl	_EV_SET
	add	x0, x28, #32
Lloh21:
	adrp	x8, _SIGTERM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SIGTERM@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	ldr	w8, [x19]
	ldr	w9, [x20]
	orr	w3, w9, w8
	mov	w2, #130
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	bl	_EV_SET
	add	x0, x28, #48
Lloh24:
	adrp	x8, _targ_fd@GOTPAGE
Lloh25:
	ldr	x8, [x8, _targ_fd@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	ldr	w8, [x19]
	ldr	w9, [x20]
	orr	w3, w9, w8
	mov	w2, #131
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	bl	_EV_SET
	ldr	w0, [x24]
	mov	x1, x28
	mov	w2, #4
	mov	x3, #0
	mov	w4, #0
	mov	x5, #0
	bl	_kevent
	tbz	w0, #31, LBB0_4
; %bb.3:
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_4:
	mov	x21, #0
Lloh29:
	adrp	x22, _debug@GOTPAGE
Lloh30:
	ldr	x22, [x22, _debug@GOTPAGEOFF]
	add	x8, x28, #4
	stur	x8, [x29, #-120]                ; 8-byte Folded Spill
	stp	xzr, xzr, [x29, #-104]
Lloh31:
	adrp	x19, _EV_ERROR@GOTPAGE
Lloh32:
	ldr	x19, [x19, _EV_ERROR@GOTPAGEOFF]
Lloh33:
	adrp	x26, l_.str.10@PAGE
Lloh34:
	add	x26, x26, l_.str.10@PAGEOFF
Lloh35:
	adrp	x23, l_.str.5@PAGE
Lloh36:
	add	x23, x23, l_.str.5@PAGEOFF
	stur	x28, [x29, #-112]               ; 8-byte Folded Spill
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
Lloh37:
	adrp	x0, _work_queue@GOTPAGE
Lloh38:
	ldr	x0, [x0, _work_queue@GOTPAGEOFF]
	bl	_TAILQ_EMPTY
	cmp	w0, #0
	sub	x8, x29, #104
	csel	x21, x8, xzr, eq
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x24, x20
	cbnz	w27, LBB0_48
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	mov	x20, x24
	ldr	w0, [x24]
	ldr	w4, [x25]
	mov	x1, #0
	mov	w2, #0
	mov	x3, x28
	mov	x5, x21
	bl	_kevent
	tbnz	w0, #31, LBB0_31
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x24, x0
	ldr	w8, [x25]
	cmp	w0, w8
	b.le	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #1
Lloh39:
	adrp	x1, l_.str.4@PAGE
Lloh40:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_errx
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w27, #0
	cbz	w24, LBB0_36
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w21, #0
	ldur	x28, [x29, #-120]               ; 8-byte Folded Reload
	mov	w24, w24
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=2
	mov	w27, #1
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=2
	add	x28, x28, #16
	subs	x24, x24, #1
	b.eq	LBB0_29
LBB0_14:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	w8, [x28, #-4]
	ldr	w9, [x19]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	w0, #1
	mov	x1, x23
	bl	_errx
LBB0_16:                                ;   in Loop: Header=BB0_14 Depth=2
	ldr	w8, [x28]
	cmp	w8, #130
	b.eq	LBB0_22
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=2
	cmp	w8, #132
	b.eq	LBB0_24
; %bb.18:                               ;   in Loop: Header=BB0_14 Depth=2
	cmp	w8, #131
	b.ne	LBB0_27
; %bb.19:                               ;   in Loop: Header=BB0_14 Depth=2
	ldr	x8, [x22]
	cbz	x8, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_14 Depth=2
Lloh41:
	adrp	x0, l_.str.6@PAGE
Lloh42:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_warnx
LBB0_21:                                ;   in Loop: Header=BB0_14 Depth=2
	bl	_handle_read
	ldr	x8, [x22]
	cbnz	x8, LBB0_28
	b	LBB0_13
LBB0_22:                                ;   in Loop: Header=BB0_14 Depth=2
	ldr	x8, [x22]
	cbz	x8, LBB0_12
; %bb.23:                               ;   in Loop: Header=BB0_14 Depth=2
Lloh43:
	adrp	x0, l_.str.8@PAGE
Lloh44:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_warnx
	mov	w27, #1
	ldr	x8, [x22]
	cbnz	x8, LBB0_28
	b	LBB0_13
LBB0_24:                                ;   in Loop: Header=BB0_14 Depth=2
	ldr	x8, [x22]
	cbz	x8, LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_14 Depth=2
Lloh45:
	adrp	x0, l_.str.7@PAGE
Lloh46:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_warnx
LBB0_26:                                ;   in Loop: Header=BB0_14 Depth=2
	ldur	x0, [x28, #4]
	ldr	x25, [x0]
Lloh47:
	adrp	x8, _AIO_DONE@GOTPAGE
Lloh48:
	ldr	x8, [x8, _AIO_DONE@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	str	w8, [x25, #4]
	bl	_queue_io
	ldr	w0, [x25]
	bl	_run_queue
	add	w21, w0, w21
	ldr	x8, [x22]
	cbnz	x8, LBB0_28
	b	LBB0_13
LBB0_27:                                ;   in Loop: Header=BB0_14 Depth=2
	str	x8, [sp, #-16]!
Lloh50:
	adrp	x0, l_.str.9@PAGE
Lloh51:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_warnx
	add	sp, sp, #16
	ldr	x8, [x22]
	cbz	x8, LBB0_13
LBB0_28:                                ;   in Loop: Header=BB0_14 Depth=2
	ldr	w8, [x28]
	str	x8, [sp, #-16]!
	mov	x0, x26
	bl	_warnx
	add	sp, sp, #16
	b	LBB0_13
LBB0_29:                                ;   in Loop: Header=BB0_7 Depth=1
	ldur	x28, [x29, #-112]               ; 8-byte Folded Reload
	cbz	w21, LBB0_35
; %bb.30:                               ;   in Loop: Header=BB0_7 Depth=1
	sub	x21, x29, #104
Lloh52:
	adrp	x25, _MAX_EVENTS@GOTPAGE
Lloh53:
	ldr	x25, [x25, _MAX_EVENTS@GOTPAGEOFF]
	b	LBB0_6
LBB0_31:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh54:
	adrp	x8, _errno@GOTPAGE
Lloh55:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh56:
	ldr	x8, [x8]
Lloh57:
	adrp	x9, _EINTR@GOTPAGE
Lloh58:
	ldr	x9, [x9, _EINTR@GOTPAGEOFF]
Lloh59:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_34
; %bb.32:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x22]
	cbz	x8, LBB0_47
; %bb.33:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh60:
	adrp	x0, l_.str.2@PAGE
Lloh61:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_warnx
	mov	w27, #0
	b	LBB0_6
LBB0_34:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #1
Lloh62:
	adrp	x1, l_.str.3@PAGE
Lloh63:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_err
	mov	w27, #0
	b	LBB0_36
LBB0_35:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh64:
	adrp	x25, _MAX_EVENTS@GOTPAGE
Lloh65:
	ldr	x25, [x25, _MAX_EVENTS@GOTPAGEOFF]
LBB0_36:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh66:
	adrp	x0, _work_queue@GOTPAGE
Lloh67:
	ldr	x0, [x0, _work_queue@GOTPAGEOFF]
	bl	_TAILQ_FIRST
	cbz	x0, LBB0_5
; %bb.37:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x21, x0
	ldr	w8, [x0]
	cmp	w8, #128
	b.eq	LBB0_40
; %bb.38:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w8, #129
	b.ne	LBB0_50
; %bb.39:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	bl	_work_atio
	b	LBB0_41
LBB0_40:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	bl	_work_inot
LBB0_41:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x24, x0
	ldr	w8, [x21, #4]
Lloh68:
	adrp	x9, _CAM_DEV_QFRZN@GOTPAGE
Lloh69:
	ldr	x9, [x9, _CAM_DEV_QFRZN@GOTPAGEOFF]
Lloh70:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_45
; %bb.42:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x22]
	cbz	x8, LBB0_44
; %bb.43:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh71:
	adrp	x0, l_.str.12@PAGE
Lloh72:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_warnx
LBB0_44:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_rel_simq
LBB0_45:                                ;   in Loop: Header=BB0_7 Depth=1
	cbnz	w24, LBB0_5
; %bb.46:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh73:
	adrp	x8, _periph_links@GOTPAGE
Lloh74:
	ldr	x8, [x8, _periph_links@GOTPAGEOFF]
Lloh75:
	ldr	w2, [x8]
Lloh76:
	adrp	x0, _work_queue@GOTPAGE
Lloh77:
	ldr	x0, [x0, _work_queue@GOTPAGEOFF]
	mov	x1, x21
	bl	_TAILQ_REMOVE
	b	LBB0_5
LBB0_47:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w27, #0
	b	LBB0_6
LBB0_48:
	ldur	x8, [x29, #-88]
Lloh78:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh79:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh80:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_51
; %bb.49:
	sub	sp, x29, #80
	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_50:
	str	x8, [sp, #-16]!
Lloh81:
	adrp	x0, l_.str.11@PAGE
Lloh82:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_warnx
	add	sp, sp, #16
	bl	_abort
LBB0_51:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpLdrGot	Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpAdd	Lloh81, Lloh82
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_EVENTS,4,2                 ; @MAX_EVENTS
	.comm	_kq_fd,4,2                      ; @kq_fd
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"init kqueue"

	.comm	_SIGHUP,4,2                     ; @SIGHUP
	.comm	_EV_ADD,4,2                     ; @EV_ADD
	.comm	_EV_ENABLE,4,2                  ; @EV_ENABLE
	.comm	_SIGINT,4,2                     ; @SIGINT
	.comm	_SIGTERM,4,2                    ; @SIGTERM
	.comm	_targ_fd,4,2                    ; @targ_fd
l_.str.1:                               ; @.str.1
	.asciz	"kevent signal registration"

	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_debug,8,3                      ; @debug
l_.str.2:                               ; @.str.2
	.asciz	"EINTR, looping"

l_.str.3:                               ; @.str.3
	.asciz	"kevent failed"

l_.str.4:                               ; @.str.4
	.asciz	"kevent returned more events than allocated?"

	.comm	_EV_ERROR,4,2                   ; @EV_ERROR
l_.str.5:                               ; @.str.5
	.asciz	"kevent registration failed"

l_.str.6:                               ; @.str.6
	.asciz	"read ready"

l_.str.7:                               ; @.str.7
	.asciz	"aio ready"

	.comm	_AIO_DONE,4,2                   ; @AIO_DONE
l_.str.8:                               ; @.str.8
	.asciz	"signal ready, setting quit"

l_.str.9:                               ; @.str.9
	.asciz	"unknown event %d"

l_.str.10:                              ; @.str.10
	.asciz	"event %d done"

	.comm	_work_queue,4,2                 ; @work_queue
l_.str.11:                              ; @.str.11
	.asciz	"Unhandled ccb type %#x on workq"

	.comm	_CAM_DEV_QFRZN,4,2              ; @CAM_DEV_QFRZN
l_.str.12:                              ; @.str.12
	.asciz	"Queue frozen receiving CCB, releasing"

	.comm	_periph_links,4,2               ; @periph_links
	.no_dead_strip	_request_loop
.subsections_via_symbols
