	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xpc_kthread_waitmsgs
_xpc_kthread_waitmsgs:                  ## @xpc_kthread_waitmsgs
	.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
	movq	%rsi, %rbx
	movq	_xpc_arch_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	leaq	16(%rsi), %r14
	movq	_XPC_C_DISCONNECTING@GOTPCREL(%rip), %r15
	jmp	LBB0_1
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movzbl	%cl, %esi
	movl	%r12d, %edi
	callq	_wait_event_interruptible_exclusive
	movq	%r14, %rdi
	callq	_atomic_dec
	movl	(%r15), %eax
	testl	%eax, (%rbx)
	jne	LBB0_8
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	*%r13
	testl	%eax, %eax
	jle	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r15), %eax
	testl	%eax, (%rbx)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_xpc_deliver_payload
	jmp	LBB0_1
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_atomic_inc_return
	cmpq	8(%rbx), %rax
	jg	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_xpc_chan@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movl	20(%rbx), %r12d
	movq	%rbx, %rdi
	callq	*%r13
	movb	$1, %cl
	testl	%eax, %eax
	jg	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r15), %eax
	testl	%eax, (%rbx)
	setne	%cl
	jmp	LBB0_7
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_atomic_dec                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_xpc_arch_ops,8,3               ## @xpc_arch_ops
	.comm	_XPC_C_DISCONNECTING,4,2        ## @XPC_C_DISCONNECTING
	.comm	_xpc_chan,4,2                   ## @xpc_chan
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"idle kthread calling wait_event_interruptible_exclusive()\n"

	.no_dead_strip	_xpc_kthread_waitmsgs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xpc_kthread_waitmsgs
_xpc_kthread_waitmsgs:                  ; @xpc_kthread_waitmsgs
	.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	x19, x1
Lloh0:
	adrp	x8, _xpc_arch_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _xpc_arch_ops@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	add	x20, x1, #16
Lloh3:
	adrp	x24, _XPC_C_DISCONNECTING@GOTPAGE
Lloh4:
	ldr	x24, [x24, _XPC_C_DISCONNECTING@GOTPAGEOFF]
Lloh5:
	adrp	x25, _xpc_chan@GOTPAGE
Lloh6:
	ldr	x25, [x25, _xpc_chan@GOTPAGEOFF]
Lloh7:
	adrp	x21, l_.str@PAGE
Lloh8:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19]
	ldr	w9, [x24]
	tst	w9, w8
	cset	w1, ne
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_wait_event_interruptible_exclusive
	mov	x0, x20
	bl	_atomic_dec
	ldr	w8, [x19]
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_9
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	mov	x0, x19
	blr	x23
	cmp	w0, #1
	b.lt	LBB0_6
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x19]
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	mov	x0, x19
	bl	_xpc_deliver_payload
	mov	x0, x19
	blr	x23
	cmp	w0, #0
	b.gt	LBB0_4
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_atomic_inc_return
	ldr	x8, [x19, #8]
	cmp	x0, x8
	b.gt	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x25]
	mov	x1, x21
	bl	_dev_dbg
	ldr	w22, [x19, #20]
	mov	x0, x19
	blr	x23
	cmp	w0, #0
	b.le	LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w1, #1
	b	LBB0_2
LBB0_9:
	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
LBB0_10:
	mov	x0, x20
	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
	b	_atomic_dec
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_xpc_arch_ops,8,3               ; @xpc_arch_ops
	.comm	_XPC_C_DISCONNECTING,4,2        ; @XPC_C_DISCONNECTING
	.comm	_xpc_chan,4,2                   ; @xpc_chan
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"idle kthread calling wait_event_interruptible_exclusive()\n"

	.no_dead_strip	_xpc_kthread_waitmsgs
.subsections_via_symbols
