	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_to_list
_add_to_list:                           ## @add_to_list
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movl	%edx, %r14d
	movl	%esi, %r15d
	leaq	16(%rdi), %rax
	cmpq	%rcx, %rax
	je	LBB0_1
## %bb.3:
	movq	%rdi, %rbx
	leaq	12(%rdi), %rax
	cmpq	%r12, %rax
	je	LBB0_4
## %bb.5:
	leaq	8(%rbx), %rax
	cmpq	%r12, %rax
	je	LBB0_6
## %bb.7:
	addq	$4, %rbx
	cmpq	%r12, %rbx
	je	LBB0_8
## %bb.9:
	xorl	%eax, %eax
	callq	_BUG
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_dbg_bld
	incl	(%rbx)
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.3(%rip), %rdi
LBB0_2:
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_dbg_bld
LBB0_10:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$12, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movl	%r15d, (%rax)
	movl	%r14d, 4(%rax)
	addq	$8, %rax
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_list_add_tail
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"add to free: PEB %d, EC %d"

L_.str.1:                               ## @.str.1
	.asciz	"add to erase: PEB %d, EC %d"

L_.str.2:                               ## @.str.2
	.asciz	"add to corrupted: PEB %d, EC %d"

L_.str.3:                               ## @.str.3
	.asciz	"add to alien: PEB %d, EC %d"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_add_to_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_to_list
_add_to_list:                           ; @add_to_list
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	add	x8, x0, #16
	cmp	x8, x3
	b.eq	LBB0_5
; %bb.1:
	mov	x22, x0
	add	x8, x0, #12
	cmp	x8, x19
	b.eq	LBB0_6
; %bb.2:
	add	x8, x22, #8
	cmp	x8, x19
	b.eq	LBB0_7
; %bb.3:
	add	x8, x22, #4
	cmp	x8, x19
	b.eq	LBB0_8
; %bb.4:
	bl	_BUG
	b	LBB0_10
LBB0_5:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_9
LBB0_6:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_7:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	bl	_dbg_bld
	ldr	w8, [x22]
	add	w8, w8, #1
	str	w8, [x22]
	b	LBB0_10
LBB0_8:
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_9:
	mov	x1, x21
	mov	x2, x20
	bl	_dbg_bld
LBB0_10:
Lloh8:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	w0, #12
	bl	_kmalloc
	cbz	x0, LBB0_12
; %bb.11:
	stp	w21, w20, [x0], #8
	mov	x1, x19
	bl	_list_add_tail
	mov	w0, #0
	b	LBB0_13
LBB0_12:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"add to free: PEB %d, EC %d"

l_.str.1:                               ; @.str.1
	.asciz	"add to erase: PEB %d, EC %d"

l_.str.2:                               ; @.str.2
	.asciz	"add to corrupted: PEB %d, EC %d"

l_.str.3:                               ; @.str.3
	.asciz	"add to alien: PEB %d, EC %d"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_add_to_list
.subsections_via_symbols
