	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_units
_create_units:                          ## @create_units
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rsi
	addq	$20, %rsi
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_fw_csr_iterator_init
	leaq	-44(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_fw_csr_iterator_next
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	xorl	%ebx, %ebx
	movq	_CSR_UNIT@GOTPCREL(%rip), %r13
	movq	_CSR_DIRECTORY@GOTPCREL(%rip), %r12
	leaq	-56(%rbp), %r15
	leaq	-44(%rbp), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %eax
	orl	(%r13), %eax
	cmpl	%eax, -44(%rbp)
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_fw_error
	movq	%r14, %r15
	leaq	-44(%rbp), %r14
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rsi
	leaq	-48(%rbp), %rdx
	callq	_fw_csr_iterator_next
	testq	%rax, %rax
	jne	LBB0_2
	jmp	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r15
	movq	-56(%rbp), %rax
	movslq	-48(%rbp), %rcx
	addq	%rcx, %rax
	decq	%rax
	movq	%rax, 32(%r15)
	movq	_fw_bus_type@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r15)
	movq	_fw_unit_type@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r15)
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, (%r15)
	callq	_dev_name
	movq	%r15, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	movl	%ebx, %ecx
	callq	_dev_set_name
	movq	%r15, %rax
	addq	$24, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	24(%r15), %edi
	callq	_ARRAY_SIZE
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_fw_unit_attributes@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ARRAY_SIZE
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_config_rom_attributes@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ARRAY_SIZE
	addq	-64(%rbp), %rax                 ## 8-byte Folded Reload
	xorl	%edi, %edi
	cmpq	%rax, -72(%rbp)                 ## 8-byte Folded Reload
	setl	%dil
	callq	_BUILD_BUG_ON
	movq	_fw_unit_attributes@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	_init_fw_attribute_group
	movq	%r15, %rdi
	callq	_device_register
	testq	%rax, %rax
	jns	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_kfree
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	movq	%r14, %r15
	movq	%r14, %rdi
	leaq	-44(%rbp), %r14
	jmp	LBB0_6
LBB0_7:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CSR_UNIT,4,2                   ## @CSR_UNIT
	.comm	_CSR_DIRECTORY,4,2              ## @CSR_DIRECTORY
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to allocate memory for unit\n"

	.comm	_fw_bus_type,4,2                ## @fw_bus_type
	.comm	_fw_unit_type,4,2               ## @fw_unit_type
L_.str.1:                               ## @.str.1
	.asciz	"%s.%d"

	.comm	_fw_unit_attributes,4,2         ## @fw_unit_attributes
	.comm	_config_rom_attributes,4,2      ## @config_rom_attributes
	.no_dead_strip	_create_units
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_units
_create_units:                          ; @create_units
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
	add	x1, x8, #20
	add	x0, sp, #8
	bl	_fw_csr_iterator_init
	add	x0, sp, #8
	add	x1, sp, #4
	mov	x2, sp
	bl	_fw_csr_iterator_next
	cbz	x0, LBB0_9
; %bb.1:
	mov	w20, #0
Lloh0:
	adrp	x27, _CSR_UNIT@GOTPAGE
Lloh1:
	ldr	x27, [x27, _CSR_UNIT@GOTPAGEOFF]
Lloh2:
	adrp	x28, _CSR_DIRECTORY@GOTPAGE
Lloh3:
	ldr	x28, [x28, _CSR_DIRECTORY@GOTPAGEOFF]
Lloh4:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	adrp	x21, l_.str@PAGE
Lloh7:
	add	x21, x21, l_.str@PAGEOFF
Lloh8:
	adrp	x24, _fw_bus_type@GOTPAGE
Lloh9:
	ldr	x24, [x24, _fw_bus_type@GOTPAGEOFF]
Lloh10:
	adrp	x25, _fw_unit_type@GOTPAGE
Lloh11:
	ldr	x25, [x25, _fw_unit_type@GOTPAGEOFF]
Lloh12:
	adrp	x26, l_.str.1@PAGE
Lloh13:
	add	x26, x26, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_fw_error
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #8
	add	x1, sp, #4
	mov	x2, sp
	bl	_fw_csr_iterator_next
	cbz	x0, LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #4]
	ldr	w9, [x27]
	ldr	w10, [x28]
	orr	w9, w10, w9
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x22]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, x0
	ldr	x8, [sp, #8]
	ldrsw	x9, [sp]
	add	x8, x8, x9
	sub	x8, x8, #1
	str	x8, [x0, #32]
	stp	x25, x24, [x0, #8]
	str	x19, [x0]
	mov	x0, x19
	bl	_dev_name
	mov	x2, x0
	mov	x0, x23
	mov	x1, x26
	mov	x3, x20
	bl	_dev_set_name
	mov	x24, x23
	ldr	w0, [x24, #24]!
	bl	_ARRAY_SIZE
	mov	x25, x0
Lloh14:
	adrp	x8, _fw_unit_attributes@GOTPAGE
Lloh15:
	ldr	x8, [x8, _fw_unit_attributes@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_ARRAY_SIZE
	mov	x26, x0
Lloh17:
	adrp	x8, _config_rom_attributes@GOTPAGE
Lloh18:
	ldr	x8, [x8, _config_rom_attributes@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_ARRAY_SIZE
	add	x8, x0, x26
	cmp	x25, x8
	cset	w0, lt
	bl	_BUILD_BUG_ON
Lloh20:
	adrp	x8, _fw_unit_attributes@GOTPAGE
Lloh21:
	ldr	x8, [x8, _fw_unit_attributes@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x23
	mov	x2, x24
	bl	_init_fw_attribute_group
	mov	x0, x23
	bl	_device_register
	tbz	x0, #63, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_kfree
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w20, w20, #1
	add	x0, sp, #8
	add	x1, sp, #4
	mov	x2, sp
	bl	_fw_csr_iterator_next
Lloh23:
	adrp	x24, _fw_bus_type@GOTPAGE
Lloh24:
	ldr	x24, [x24, _fw_bus_type@GOTPAGEOFF]
Lloh25:
	adrp	x25, _fw_unit_type@GOTPAGE
Lloh26:
	ldr	x25, [x25, _fw_unit_type@GOTPAGEOFF]
Lloh27:
	adrp	x26, l_.str.1@PAGE
Lloh28:
	add	x26, x26, l_.str.1@PAGEOFF
	cbnz	x0, LBB0_4
LBB0_9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_CSR_UNIT,4,2                   ; @CSR_UNIT
	.comm	_CSR_DIRECTORY,4,2              ; @CSR_DIRECTORY
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to allocate memory for unit\n"

	.comm	_fw_bus_type,4,2                ; @fw_bus_type
	.comm	_fw_unit_type,4,2               ; @fw_unit_type
l_.str.1:                               ; @.str.1
	.asciz	"%s.%d"

	.comm	_fw_unit_attributes,4,2         ; @fw_unit_attributes
	.comm	_config_rom_attributes,4,2      ; @config_rom_attributes
	.no_dead_strip	_create_units
.subsections_via_symbols
