	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function llist_sorted_remove
_llist_sorted_remove:                   ## @llist_sorted_remove
	.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	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	%r15, %rax
	testq	%r15, %r15
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%r14), %rax
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	testq	%rax, %rax
	je	LBB0_16
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rax, %rbx
	movl	8(%rax), %edi
	movq	%r12, %rsi
	callq	_oidcmp
	testl	%eax, %eax
	jg	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	(%rbx), %rax
	movq	%rbx, %r13
	testq	%rax, %rax
	jne	LBB0_5
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	testq	%r13, %r13
	jne	LBB0_17
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	testq	%r15, %r15
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpq	16(%r14), %r15
	movl	$0, %r15d
	jne	LBB0_1
LBB0_11:
	movq	(%rbx), %rax
	movq	%rax, 16(%r14)
	cmpq	8(%r14), %rbx
	jne	LBB0_13
LBB0_12:
	movq	%r13, 8(%r14)
LBB0_13:
	movq	%rbx, %rdi
	callq	_llist_item_put
	decl	(%r14)
LBB0_14:
	movq	%r13, %rbx
LBB0_15:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_17:
	movq	(%rbx), %rax
	movq	%rax, (%r13)
	cmpq	8(%r14), %rbx
	jne	LBB0_13
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_llist_sorted_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function llist_sorted_remove
_llist_sorted_remove:                   ; @llist_sorted_remove
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	mov	x8, x21
	cbnz	x21, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x19, #16]
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	cbz	x8, LBB0_12
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x23, #0
LBB0_5:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x20, x8
	ldr	w0, [x8, #8]
	mov	x1, x22
	bl	_oidcmp
	cmp	w0, #0
	b.gt	LBB0_17
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	cbz	w0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	x8, [x20]
	mov	x23, x20
	cbnz	x8, LBB0_5
	b	LBB0_18
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	cbnz	x23, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	cbz	x21, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x19, #16]
	cmp	x21, x8
	mov	x21, #0
	b.ne	LBB0_1
LBB0_11:
	ldr	x8, [x20]
	str	x8, [x19, #16]
	b	LBB0_14
LBB0_12:
	mov	x20, #0
	b	LBB0_18
LBB0_13:
	ldr	x8, [x20]
	str	x8, [x23]
LBB0_14:
	ldr	x8, [x19, #8]
	cmp	x20, x8
	b.ne	LBB0_16
; %bb.15:
	str	x23, [x19, #8]
LBB0_16:
	mov	x0, x20
	bl	_llist_item_put
	ldr	w8, [x19]
	sub	w8, w8, #1
	str	w8, [x19]
LBB0_17:
	mov	x20, x23
LBB0_18:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_llist_sorted_remove
.subsections_via_symbols
