	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cn_ulog_callback
_cn_ulog_callback:                      ## @cn_ulog_callback
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_CAP_SYS_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movq	_receiving_list_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock
	movl	(%rbx), %edx
	testl	%edx, %edx
	je	LBB0_2
## %bb.3:
	cmpl	$3, %edx
	ja	LBB0_5
## %bb.4:
	movl	4(%rbx), %ecx
	leaq	L_.str(%rip), %rdi
	movl	$4, %esi
	callq	_DMERR
	jmp	LBB0_7
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	jmp	LBB0_6
LBB0_5:
	addq	$8, %rbx
	xorl	%edi, %edi
	movq	%rbx, %rsi
LBB0_6:
	callq	_fill_pkg
LBB0_7:
	movq	_receiving_list_lock@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CAP_SYS_ADMIN,4,2              ## @CAP_SYS_ADMIN
	.comm	_receiving_list_lock,4,2        ## @receiving_list_lock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Incomplete message received (expected %u, got %u): [%u]"

	.no_dead_strip	_cn_ulog_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cn_ulog_callback
_cn_ulog_callback:                      ; @cn_ulog_callback
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _CAP_SYS_ADMIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAP_SYS_ADMIN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_4
; %bb.1:
Lloh3:
	adrp	x0, _receiving_list_lock@GOTPAGE
Lloh4:
	ldr	x0, [x0, _receiving_list_lock@GOTPAGEOFF]
	bl	_spin_lock
	ldr	w2, [x19]
	cbz	w2, LBB0_5
; %bb.2:
	cmp	w2, #3
	b.hi	LBB0_6
; %bb.3:
	ldr	w3, [x19, #4]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #4
	bl	_DMERR
	b	LBB0_8
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x0, x19
	mov	x1, #0
	b	LBB0_7
LBB0_6:
	add	x1, x19, #8
	mov	x0, #0
LBB0_7:
	bl	_fill_pkg
LBB0_8:
Lloh7:
	adrp	x0, _receiving_list_lock@GOTPAGE
Lloh8:
	ldr	x0, [x0, _receiving_list_lock@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CAP_SYS_ADMIN,4,2              ; @CAP_SYS_ADMIN
	.comm	_receiving_list_lock,4,2        ; @receiving_list_lock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Incomplete message received (expected %u, got %u): [%u]"

	.no_dead_strip	_cn_ulog_callback
.subsections_via_symbols
