	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function firmware_map_add_entry
_firmware_map_add_entry:                ## @firmware_map_add_entry
	.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, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	xorl	%edi, %edi
	cmpq	%rsi, %r12
	setg	%dil
	callq	_BUG_ON
	movq	%r12, 24(%rbx)
	decq	%r15
	movq	%r15, 16(%rbx)
	movq	%r14, (%rbx)
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_INIT_LIST_HEAD
	addq	$12, %rbx
	movq	_memmap_ktype@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_kobject_init
	movq	_map_entries_lock@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	_map_entries@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_list_add_tail
	movq	%rbx, %rdi
	callq	_spin_unlock
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_memmap_ktype,4,2               ## @memmap_ktype
	.comm	_map_entries_lock,4,2           ## @map_entries_lock
	.comm	_map_entries,4,2                ## @map_entries
	.no_dead_strip	_firmware_map_add_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function firmware_map_add_entry
_firmware_map_add_entry:                ; @firmware_map_add_entry
	.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
	mov	x22, x0
	cmp	x0, x1
	cset	w0, gt
	bl	_BUG_ON
	sub	x8, x21, #1
	stp	x8, x22, [x19, #16]
	str	x20, [x19]
	add	x20, x19, #8
	mov	x0, x20
	bl	_INIT_LIST_HEAD
	add	x0, x19, #12
Lloh0:
	adrp	x1, _memmap_ktype@GOTPAGE
Lloh1:
	ldr	x1, [x1, _memmap_ktype@GOTPAGEOFF]
	bl	_kobject_init
Lloh2:
	adrp	x19, _map_entries_lock@GOTPAGE
Lloh3:
	ldr	x19, [x19, _map_entries_lock@GOTPAGEOFF]
	mov	x0, x19
	bl	_spin_lock
Lloh4:
	adrp	x1, _map_entries@GOTPAGE
Lloh5:
	ldr	x1, [x1, _map_entries@GOTPAGEOFF]
	mov	x0, x20
	bl	_list_add_tail
	mov	x0, x19
	bl	_spin_unlock
	mov	w0, #0
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_memmap_ktype,4,2               ; @memmap_ktype
	.comm	_map_entries_lock,4,2           ; @map_entries_lock
	.comm	_map_entries,4,2                ; @map_entries
	.no_dead_strip	_firmware_map_add_entry
.subsections_via_symbols
