	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __device_release_driver
___device_release_driver:               ## @__device_release_driver
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	16(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	callq	_pm_runtime_get_noresume
	movq	%rbx, %rdi
	callq	_pm_runtime_barrier
	movq	%rbx, %rdi
	callq	_driver_sysfs_remove
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	(%rax), %rdi
	movq	_BUS_NOTIFY_UNBIND_DRIVER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_blocking_notifier_call_chain
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_5
LBB0_4:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	movq	%rbx, %rdi
	callq	*%rax
LBB0_6:
	movq	%rbx, %rdi
	callq	_devres_release_all
	movq	$0, 16(%rbx)
	movq	8(%rbx), %rdi
	callq	_klist_remove
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	(%rax), %rdi
	movq	_BUS_NOTIFY_UNBOUND_DRIVER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_blocking_notifier_call_chain
LBB0_8:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_pm_runtime_put_sync            ## TAILCALL
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BUS_NOTIFY_UNBIND_DRIVER,4,2   ## @BUS_NOTIFY_UNBIND_DRIVER
	.comm	_BUS_NOTIFY_UNBOUND_DRIVER,4,2  ## @BUS_NOTIFY_UNBOUND_DRIVER
	.no_dead_strip	___device_release_driver
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __device_release_driver
___device_release_driver:               ; @__device_release_driver
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x20, [x0, #16]
	cbz	x20, LBB0_9
; %bb.1:
	mov	x19, x0
	bl	_pm_runtime_get_noresume
	mov	x0, x19
	bl	_pm_runtime_barrier
	mov	x0, x19
	bl	_driver_sysfs_remove
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x0, [x8]
Lloh0:
	adrp	x8, _BUS_NOTIFY_UNBIND_DRIVER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BUS_NOTIFY_UNBIND_DRIVER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_blocking_notifier_call_chain
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_5
LBB0_4:
	ldr	x8, [x20]
	cbz	x8, LBB0_6
LBB0_5:
	mov	x0, x19
	blr	x8
LBB0_6:
	mov	x0, x19
	bl	_devres_release_all
	str	xzr, [x19, #16]
	ldr	x0, [x19, #8]
	bl	_klist_remove
	ldr	x8, [x19]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	x0, [x8]
Lloh3:
	adrp	x8, _BUS_NOTIFY_UNBOUND_DRIVER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BUS_NOTIFY_UNBOUND_DRIVER@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_blocking_notifier_call_chain
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pm_runtime_put_sync
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_BUS_NOTIFY_UNBIND_DRIVER,4,2   ; @BUS_NOTIFY_UNBIND_DRIVER
	.comm	_BUS_NOTIFY_UNBOUND_DRIVER,4,2  ; @BUS_NOTIFY_UNBOUND_DRIVER
	.no_dead_strip	___device_release_driver
.subsections_via_symbols
