	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function class_dev_destroy
_class_dev_destroy:                     ## @class_dev_destroy
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpq	$0, (%rdi)
	je	LBB0_14
## %bb.1:
	movq	%rdi, %rbx
	callq	_pvr2_sysfs_tear_down_controls
	cmpq	$0, 96(%rbx)
	je	LBB0_3
## %bb.2:
	movq	(%rbx), %rdi
	leaq	88(%rbx), %rsi
	callq	_device_remove_file
LBB0_3:
	cmpq	$0, 80(%rbx)
	je	LBB0_5
## %bb.4:
	movq	(%rbx), %rdi
	leaq	72(%rbx), %rsi
	callq	_device_remove_file
LBB0_5:
	cmpq	$0, 64(%rbx)
	je	LBB0_7
## %bb.6:
	movq	(%rbx), %rdi
	leaq	56(%rbx), %rsi
	callq	_device_remove_file
LBB0_7:
	cmpq	$0, 48(%rbx)
	je	LBB0_9
## %bb.8:
	movq	(%rbx), %rdi
	leaq	40(%rbx), %rsi
	callq	_device_remove_file
LBB0_9:
	cmpq	$0, 32(%rbx)
	je	LBB0_11
## %bb.10:
	movq	(%rbx), %rdi
	leaq	24(%rbx), %rsi
	callq	_device_remove_file
LBB0_11:
	cmpq	$0, 16(%rbx)
	je	LBB0_13
## %bb.12:
	movq	(%rbx), %rdi
	leaq	8(%rbx), %rsi
	callq	_device_remove_file
LBB0_13:
	movq	(%rbx), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_pvr2_sysfs_trace
	movq	(%rbx), %rdi
	xorl	%esi, %esi
	callq	_dev_set_drvdata
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	movq	$0, (%rax)
	callq	_put_device
	movq	(%rbx), %rdi
	callq	_device_unregister
	movq	$0, (%rbx)
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Destroying class_dev id=%p"

	.no_dead_strip	_class_dev_destroy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function class_dev_destroy
_class_dev_destroy:                     ; @class_dev_destroy
	.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	x8, [x0]
	cbz	x8, LBB0_14
; %bb.1:
	mov	x19, x0
	bl	_pvr2_sysfs_tear_down_controls
	ldr	x8, [x19, #96]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x1, x19
	ldr	x0, [x1], #88
	bl	_device_remove_file
LBB0_3:
	ldr	x8, [x19, #80]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x1, x19
	ldr	x0, [x1], #72
	bl	_device_remove_file
LBB0_5:
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x1, x19
	ldr	x0, [x1], #56
	bl	_device_remove_file
LBB0_7:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x1, x19
	ldr	x0, [x1], #40
	bl	_device_remove_file
LBB0_9:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_11
; %bb.10:
	mov	x1, x19
	ldr	x0, [x1], #24
	bl	_device_remove_file
LBB0_11:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_13
; %bb.12:
	mov	x1, x19
	ldr	x0, [x1], #8
	bl	_device_remove_file
LBB0_13:
	ldr	x1, [x19]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pvr2_sysfs_trace
	ldr	x0, [x19]
	mov	x1, #0
	bl	_dev_set_drvdata
	ldr	x8, [x19]
	ldr	x0, [x8]
	str	xzr, [x8]
	bl	_put_device
	ldr	x0, [x19]
	bl	_device_unregister
	str	xzr, [x19]
LBB0_14:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Destroying class_dev id=%p"

	.no_dead_strip	_class_dev_destroy
.subsections_via_symbols
