	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gb_bundle_create               ## -- Begin function gb_bundle_create
	.p2align	4, 0x90
_gb_bundle_create:                      ## @gb_bundle_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	%rsi, %r14
	movq	%rdi, %rbx
	movq	_BUNDLE_ID_NONE@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jne	LBB0_2
## %bb.1:
	addq	$4, %rbx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_4
LBB0_2:
	movq	%rdx, %r12
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_gb_bundle_find
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	addq	$4, %rbx
	leaq	L_.str.1(%rip), %rsi
LBB0_4:
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_dev_err
LBB0_5:
	xorl	%r15d, %r15d
LBB0_6:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$72, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.8:
	movq	%rax, %r15
	movq	%rbx, 64(%rax)
	movq	%r14, 56(%rax)
	movq	%r12, 48(%rax)
	leaq	40(%rax), %rdi
	callq	_INIT_LIST_HEAD
	leaq	4(%rbx), %r12
	movq	%r15, %r13
	addq	$8, %r13
	movq	%r12, 32(%r15)
	movq	_greybus_bus_type@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r15)
	movq	_greybus_bundle_type@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r15)
	movq	_bundle_groups@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movl	4(%rbx), %eax
	movl	%eax, 8(%r15)
	movq	%r13, %rdi
	callq	_device_initialize
	movq	%r12, %rdi
	callq	_dev_name
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	movq	%r14, %rcx
	callq	_dev_set_name
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_list_add
	movq	%r15, %rdi
	callq	_trace_gb_bundle_create
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_BUNDLE_ID_NONE,8,3             ## @BUNDLE_ID_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't use bundle id %u\n"

L_.str.1:                               ## @.str.1
	.asciz	"duplicate bundle id %u\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_greybus_bus_type,4,2           ## @greybus_bus_type
	.comm	_greybus_bundle_type,4,2        ## @greybus_bundle_type
	.comm	_bundle_groups,4,2              ## @bundle_groups
L_.str.2:                               ## @.str.2
	.asciz	"%s.%d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gb_bundle_create               ; -- Begin function gb_bundle_create
	.p2align	2
_gb_bundle_create:                      ; @gb_bundle_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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _BUNDLE_ID_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BUNDLE_ID_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ne	LBB0_2
; %bb.1:
	add	x0, x20, #4
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	mov	x22, x2
	mov	x0, x20
	mov	x1, x19
	bl	_gb_bundle_find
	cbz	x0, LBB0_6
; %bb.3:
	add	x0, x20, #4
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	mov	x2, x19
	bl	_dev_err
	mov	x21, #0
LBB0_5:
	mov	x0, x21
	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
LBB0_6:
Lloh7:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	w0, #72
	bl	_kzalloc
	mov	x21, x0
	cbz	x0, LBB0_5
; %bb.7:
	stp	x19, x20, [x21, #56]
	add	x0, x21, #40
	str	x22, [x21, #48]
	bl	_INIT_LIST_HEAD
	mov	x22, x20
	ldr	w8, [x22, #4]!
Lloh10:
	adrp	x9, _greybus_bus_type@GOTPAGE
Lloh11:
	ldr	x9, [x9, _greybus_bus_type@GOTPAGEOFF]
	str	x22, [x21, #32]
Lloh12:
	adrp	x10, _greybus_bundle_type@GOTPAGE
Lloh13:
	ldr	x10, [x10, _greybus_bundle_type@GOTPAGEOFF]
Lloh14:
	adrp	x11, _bundle_groups@GOTPAGE
Lloh15:
	ldr	x11, [x11, _bundle_groups@GOTPAGEOFF]
	stp	x10, x9, [x21, #16]
Lloh16:
	ldr	w9, [x11]
	str	w9, [x21, #12]
	mov	x23, x21
	str	w8, [x23, #8]!
	mov	x0, x23
	bl	_device_initialize
	mov	x0, x22
	bl	_dev_name
	mov	x2, x0
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x23
	mov	x3, x19
	bl	_dev_set_name
	mov	x0, x21
	mov	x1, x20
	bl	_list_add
	mov	x0, x21
	bl	_trace_gb_bundle_create
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_BUNDLE_ID_NONE,8,3             ; @BUNDLE_ID_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't use bundle id %u\n"

l_.str.1:                               ; @.str.1
	.asciz	"duplicate bundle id %u\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_greybus_bus_type,4,2           ; @greybus_bus_type
	.comm	_greybus_bundle_type,4,2        ; @greybus_bundle_type
	.comm	_bundle_groups,4,2              ; @bundle_groups
l_.str.2:                               ; @.str.2
	.asciz	"%s.%d"

.subsections_via_symbols
