	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gb_module_create               ## -- Begin function gb_module_create
	.p2align	4, 0x90
_gb_module_create:                      ## @gb_module_create
	.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, %r13
	movq	_interfaces@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_struct_size
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %r14
	movq	%r13, 56(%rax)
	movq	%r12, 48(%rax)
	movq	%r15, (%rax)
	leaq	4(%r13), %rax
	movq	%r14, %rbx
	addq	$8, %rbx
	movq	%rax, 32(%r14)
	movq	_greybus_bus_type@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r14)
	movq	_greybus_module_type@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r14)
	movq	_module_groups@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movl	4(%r13), %eax
	movl	%eax, 8(%r14)
	movq	%rbx, %rdi
	callq	_device_initialize
	movl	(%r13), %edx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r12, %rcx
	callq	_dev_set_name
	movq	%r14, %rdi
	callq	_trace_gb_module_create
	testq	%r15, %r15
	je	LBB0_10
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r12,%rbx), %r13
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_gb_interface_create
	testq	%rax, %rax
	je	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	40(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_3
	jmp	LBB0_10
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%r13, %rdx
	callq	_dev_err
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.5:
	movl	%ebx, %ebx
	decq	%rbx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%r14), %rax
	movl	%ebx, %ecx
	movq	(%rax,%rcx,8), %rdi
	callq	_gb_interface_put
	decq	%rbx
	leal	2(%rbx), %eax
	cmpl	$1, %eax
	jg	LBB0_6
LBB0_7:
	movq	%r15, %rdi
	callq	_put_device
LBB0_8:
	xorl	%r14d, %r14d
LBB0_10:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_interfaces,4,2                 ## @interfaces
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_greybus_bus_type,4,2           ## @greybus_bus_type
	.comm	_greybus_module_type,4,2        ## @greybus_module_type
	.comm	_module_groups,4,2              ## @module_groups
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d-%u"

L_.str.1:                               ## @.str.1
	.asciz	"failed to create interface %u\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gb_module_create               ; -- Begin function gb_module_create
	.p2align	2
_gb_module_create:                      ; @gb_module_create
	.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	x23, x0
Lloh0:
	adrp	x8, _interfaces@GOTPAGE
Lloh1:
	ldr	x8, [x8, _interfaces@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_struct_size
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_9
; %bb.1:
	stp	x22, x23, [x19, #48]
	mov	x8, x23
	ldr	w9, [x8, #4]!
	mov	x20, x19
	str	w9, [x20, #8]!
	str	x21, [x19]
	str	x8, [x19, #32]
Lloh6:
	adrp	x8, _greybus_bus_type@GOTPAGE
Lloh7:
	ldr	x8, [x8, _greybus_bus_type@GOTPAGEOFF]
Lloh8:
	adrp	x9, _greybus_module_type@GOTPAGE
Lloh9:
	ldr	x9, [x9, _greybus_module_type@GOTPAGEOFF]
	stp	x9, x8, [x19, #16]
Lloh10:
	adrp	x8, _module_groups@GOTPAGE
Lloh11:
	ldr	x8, [x8, _module_groups@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	mov	x0, x20
	bl	_device_initialize
	ldr	w2, [x23]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x22
	bl	_dev_set_name
	mov	x0, x19
	bl	_trace_gb_module_create
	cbz	x21, LBB0_9
; %bb.2:
	mov	x24, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x23, x22, x24
	mov	x0, x19
	mov	x1, x23
	bl	_gb_interface_create
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #40]
	str	x0, [x8, x24, lsl #3]
	add	x24, x24, #1
	cmp	x21, x24
	b.ne	LBB0_3
	b	LBB0_9
LBB0_5:
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	bl	_dev_err
	cbz	w24, LBB0_8
; %bb.6:
	and	x8, x24, #0xffffffff
	sub	x21, x8, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #40]
	ldr	x0, [x8, w21, uxtw #3]
	bl	_gb_interface_put
	sub	x21, x21, #1
	add	w8, w21, #2
	cmp	w8, #1
	b.gt	LBB0_7
LBB0_8:
	mov	x0, x20
	bl	_put_device
	mov	x19, #0
LBB0_9:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_interfaces,4,2                 ; @interfaces
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_greybus_bus_type,4,2           ; @greybus_bus_type
	.comm	_greybus_module_type,4,2        ; @greybus_module_type
	.comm	_module_groups,4,2              ; @module_groups
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d-%u"

l_.str.1:                               ; @.str.1
	.asciz	"failed to create interface %u\n"

.subsections_via_symbols
