	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function greybus_probe
_greybus_probe:                         ## @greybus_probe
	.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, %r14
	movl	(%rdi), %edi
	callq	_to_greybus_driver
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_to_gb_bundle
	movq	%rax, %r15
	movl	8(%r12), %esi
	movq	%rax, %rdi
	callq	_greybus_match_id
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	(%r15), %rdi
	callq	_pm_runtime_get_sync
	movq	(%r15), %rdi
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	4(%rdi), %edi
	movl	8(%r15), %esi
	callq	_gb_control_bundle_activate
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	%eax, %ebx
	jmp	LBB0_6
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_3:
	movl	%eax, %ebx
	callq	_pm_runtime_put_noidle
	jmp	LBB0_10
LBB0_7:
	movq	_GB_BUNDLE_AUTOSUSPEND_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pm_runtime_set_autosuspend_delay
	movq	%r14, %rdi
	callq	_pm_runtime_use_autosuspend
	movq	%r14, %rdi
	callq	_pm_runtime_get_noresume
	movq	%r14, %rdi
	callq	_pm_runtime_set_active
	movq	%r14, %rdi
	callq	_pm_runtime_enable
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	*(%r12)
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	movq	%r15, %rdi
	addq	$12, %rdi
	callq	_list_empty
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	movq	(%r15), %rax
	movl	4(%rax), %edi
	movl	8(%r15), %esi
	callq	_gb_control_bundle_deactivate
	movq	%r14, %rdi
	callq	_pm_runtime_disable
	movq	%r14, %rdi
	callq	_pm_runtime_set_suspended
	movq	%r14, %rdi
	callq	_pm_runtime_put_noidle
	movq	%r14, %rdi
	callq	_pm_runtime_dont_use_autosuspend
LBB0_6:
	movq	(%r15), %rdi
	callq	_pm_runtime_put
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	(%r15), %rdi
	callq	_pm_runtime_put
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GB_BUNDLE_AUTOSUSPEND_MS,4,2   ## @GB_BUNDLE_AUTOSUSPEND_MS
	.no_dead_strip	_greybus_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function greybus_probe
_greybus_probe:                         ; @greybus_probe
	.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, x0
	ldr	w0, [x0]
	bl	_to_greybus_driver
	mov	x22, x0
	mov	x0, x19
	bl	_to_gb_bundle
	mov	x20, x0
	ldr	w1, [x22, #8]
	bl	_greybus_match_id
	cbz	x0, LBB0_4
; %bb.1:
	mov	x23, x0
	ldr	x0, [x20]
	bl	_pm_runtime_get_sync
	mov	x21, x0
	ldr	x0, [x20]
	tbnz	w21, #31, LBB0_5
; %bb.2:
	ldr	w0, [x0, #4]
	ldr	w1, [x20, #8]
	bl	_gb_control_bundle_activate
	cbz	w0, LBB0_6
; %bb.3:
	mov	x21, x0
	b	LBB0_8
LBB0_4:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_9
LBB0_5:
	bl	_pm_runtime_put_noidle
	b	LBB0_9
LBB0_6:
Lloh3:
	adrp	x8, _GB_BUNDLE_AUTOSUSPEND_MS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GB_BUNDLE_AUTOSUSPEND_MS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pm_runtime_set_autosuspend_delay
	mov	x0, x19
	bl	_pm_runtime_use_autosuspend
	mov	x0, x19
	bl	_pm_runtime_get_noresume
	mov	x0, x19
	bl	_pm_runtime_set_active
	mov	x0, x19
	bl	_pm_runtime_enable
	ldr	x8, [x22]
	mov	x0, x20
	mov	x1, x23
	blr	x8
	mov	x21, x0
	cbz	w0, LBB0_8
; %bb.7:
	add	x0, x20, #12
	bl	_list_empty
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	ldr	x8, [x20]
	ldr	w0, [x8, #4]
	ldr	w1, [x20, #8]
	bl	_gb_control_bundle_deactivate
	mov	x0, x19
	bl	_pm_runtime_disable
	mov	x0, x19
	bl	_pm_runtime_set_suspended
	mov	x0, x19
	bl	_pm_runtime_put_noidle
	mov	x0, x19
	bl	_pm_runtime_dont_use_autosuspend
LBB0_8:
	ldr	x0, [x20]
	bl	_pm_runtime_put
LBB0_9:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GB_BUNDLE_AUTOSUSPEND_MS,4,2   ; @GB_BUNDLE_AUTOSUSPEND_MS
	.no_dead_strip	_greybus_probe
.subsections_via_symbols
