	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function coreboot_table_populate
_coreboot_table_populate:               ## @coreboot_table_populate
	.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	%rdi, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, 4(%rsi)
	jle	LBB0_7
## %bb.1:
	movq	%rsi, %r15
	movslq	(%rsi), %rbx
	addq	%rsi, %rbx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	addq	$4, %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r13
	movq	%rax, %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	callq	_dev_set_name
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%r13)
	movq	_coreboot_bus_type@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r13)
	movq	_coreboot_device_release@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
	movq	%r13, %rdi
	addq	$24, %rdi
	movq	(%rbx), %rdx
	movq	%rbx, %rsi
	callq	_memcpy
	movq	%r13, %rdi
	callq	_device_register
	testl	%eax, %eax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	(%rbx), %rbx
	incl	%r12d
	cmpl	4(%r15), %r12d
	jl	LBB0_2
LBB0_7:
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_8
LBB0_5:
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_put_device
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"coreboot%d"

	.comm	_coreboot_bus_type,4,2          ## @coreboot_bus_type
	.comm	_coreboot_device_release,4,2    ## @coreboot_device_release
	.no_dead_strip	_coreboot_table_populate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function coreboot_table_populate
_coreboot_table_populate:               ; @coreboot_table_populate
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x1, #4]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	w21, #0
	ldrsw	x8, [x1]
	add	x22, x1, x8
Lloh0:
	adrp	x26, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x26, [x26, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	adrp	x23, l_.str@PAGE
Lloh3:
	add	x23, x23, l_.str@PAGEOFF
Lloh4:
	adrp	x27, _coreboot_bus_type@GOTPAGE
Lloh5:
	ldr	x27, [x27, _coreboot_bus_type@GOTPAGEOFF]
Lloh6:
	adrp	x28, _coreboot_device_release@GOTPAGE
Lloh7:
	ldr	x28, [x28, _coreboot_device_release@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	add	x0, x8, #4
	ldr	w1, [x26]
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x24, x0
	mov	x1, x23
	mov	x2, x21
	bl	_dev_set_name
	stp	x27, x20, [x24, #8]
	ldr	w8, [x28]
	str	w8, [x24]
	add	x0, x24, #24
	ldr	x2, [x22]
	mov	x1, x22
	bl	_memcpy
	mov	x0, x24
	bl	_device_register
	cbnz	w0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x22]
	add	x22, x22, x8
	add	w21, w21, #1
	ldr	w8, [x19, #4]
	cmp	w21, w8
	b.lt	LBB0_2
LBB0_5:
	mov	w25, #0
	b	LBB0_8
LBB0_6:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_8
LBB0_7:
	mov	x25, x0
	mov	x0, x24
	bl	_put_device
LBB0_8:
	mov	x0, x25
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"coreboot%d"

	.comm	_coreboot_bus_type,4,2          ; @coreboot_bus_type
	.comm	_coreboot_device_release,4,2    ; @coreboot_device_release
	.no_dead_strip	_coreboot_table_populate
.subsections_via_symbols
