	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gb_svc_create                  ## -- Begin function gb_svc_create
	.p2align	4, 0x90
_gb_svc_create:                         ## @gb_svc_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$64, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	movq	_WQ_UNBOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	4(%r14), %r15
	movq	%r15, %rdi
	callq	_dev_name
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movl	$1, %edx
	movl	%eax, %ecx
	callq	_alloc_workqueue
	movl	%eax, 56(%rbx)
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movq	%r15, (%rbx)
	movq	_greybus_bus_type@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rbx)
	movq	_greybus_svc_type@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movq	_svc_groups@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movl	4(%r14), %eax
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_device_initialize
	movl	(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_set_name
	movq	%rbx, %rdi
	addq	$52, %rdi
	callq	_ida_init
	movq	_GB_SVC_STATE_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	%r14, 40(%rbx)
	movq	_GB_SVC_CPORT_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_gb_svc_request_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_gb_connection_create_static
	movl	%eax, 32(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	32(%rbx), %edi
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	callq	_PTR_ERR
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movq	%rbx, %rdi
	callq	_put_device
LBB0_4:
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_5:
	movq	%rbx, %rdi
	callq	_kfree
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_6:
	movq	%rbx, %rsi
	callq	_gb_connection_set_data
LBB0_7:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s:svc"

	.comm	_WQ_UNBOUND,4,2                 ## @WQ_UNBOUND
	.comm	_greybus_bus_type,4,2           ## @greybus_bus_type
	.comm	_greybus_svc_type,4,2           ## @greybus_svc_type
	.comm	_svc_groups,4,2                 ## @svc_groups
L_.str.1:                               ## @.str.1
	.asciz	"%d-svc"

	.comm	_GB_SVC_STATE_RESET,4,2         ## @GB_SVC_STATE_RESET
	.comm	_GB_SVC_CPORT_ID,4,2            ## @GB_SVC_CPORT_ID
	.comm	_gb_svc_request_handler,4,2     ## @gb_svc_request_handler
L_.str.2:                               ## @.str.2
	.asciz	"failed to create connection: %ld\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gb_svc_create                  ; -- Begin function gb_svc_create
	.p2align	2
_gb_svc_create:                         ; @gb_svc_create
	.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	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #64
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, _WQ_UNBOUND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WQ_UNBOUND@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	add	x21, x20, #4
	mov	x0, x21
	bl	_dev_name
	mov	x3, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	mov	w2, #1
	bl	_alloc_workqueue
	str	w0, [x19, #56]
	cbz	w0, LBB0_4
; %bb.2:
	str	x21, [x19]
Lloh8:
	adrp	x8, _greybus_bus_type@GOTPAGE
Lloh9:
	ldr	x8, [x8, _greybus_bus_type@GOTPAGEOFF]
Lloh10:
	adrp	x9, _greybus_svc_type@GOTPAGE
Lloh11:
	ldr	x9, [x9, _greybus_svc_type@GOTPAGEOFF]
	stp	x9, x8, [x19, #16]
Lloh12:
	adrp	x8, _svc_groups@GOTPAGE
Lloh13:
	ldr	x8, [x8, _svc_groups@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	stp	w9, w8, [x19, #8]
	mov	x0, x19
	bl	_device_initialize
	ldr	w2, [x20]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_set_name
	add	x0, x19, #52
	bl	_ida_init
Lloh17:
	adrp	x8, _GB_SVC_STATE_RESET@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GB_SVC_STATE_RESET@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x19, #48]
	str	x20, [x19, #40]
Lloh20:
	adrp	x8, _GB_SVC_CPORT_ID@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GB_SVC_CPORT_ID@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _gb_svc_request_handler@GOTPAGE
Lloh24:
	ldr	x8, [x8, _gb_svc_request_handler@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_gb_connection_create_static
	str	w0, [x19, #32]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x19, #32]
	cbz	x8, LBB0_5
; %bb.3:
	bl	_PTR_ERR
	mov	x2, x0
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x19
	bl	_put_device
	mov	x19, #0
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
	b	LBB0_6
LBB0_5:
	mov	x1, x19
	bl	_gb_connection_set_data
LBB0_6:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s:svc"

	.comm	_WQ_UNBOUND,4,2                 ; @WQ_UNBOUND
	.comm	_greybus_bus_type,4,2           ; @greybus_bus_type
	.comm	_greybus_svc_type,4,2           ; @greybus_svc_type
	.comm	_svc_groups,4,2                 ; @svc_groups
l_.str.1:                               ; @.str.1
	.asciz	"%d-svc"

	.comm	_GB_SVC_STATE_RESET,4,2         ; @GB_SVC_STATE_RESET
	.comm	_GB_SVC_CPORT_ID,4,2            ; @GB_SVC_CPORT_ID
	.comm	_gb_svc_request_handler,4,2     ; @gb_svc_request_handler
l_.str.2:                               ; @.str.2
	.asciz	"failed to create connection: %ld\n"

.subsections_via_symbols
