	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_video_bus_put_one_device
_acpi_video_bus_put_one_device:         ## @acpi_video_bus_put_one_device
	.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
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	cmpq	$0, 32(%rdi)
	je	LBB0_2
## %bb.3:
	movq	16(%rbx), %rdi
	callq	_acpi_video_device_remove_fs
	movq	16(%rbx), %rax
	movl	4(%rax), %edi
	movq	_ACPI_DEVICE_NOTIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_acpi_video_device_notify@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_acpi_remove_notify_handler
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	callq	_sysfs_remove_link
	movq	24(%rbx), %rdi
	callq	_backlight_device_unregister
	movq	$0, 24(%rbx)
LBB0_5:
	cmpq	$0, 8(%rbx)
	je	LBB0_7
## %bb.6:
	movq	16(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_sysfs_remove_link
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_sysfs_remove_link
	movq	8(%rbx), %rdi
	callq	_thermal_cooling_device_unregister
	movq	$0, 8(%rbx)
LBB0_7:
	movl	(%rbx), %edi
	callq	_video_output_unregister
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_2:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_ACPI_DEVICE_NOTIFY,4,2         ## @ACPI_DEVICE_NOTIFY
	.comm	_acpi_video_device_notify,4,2   ## @acpi_video_device_notify
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"device"

L_.str.1:                               ## @.str.1
	.asciz	"thermal_cooling"

	.no_dead_strip	_acpi_video_bus_put_one_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_video_bus_put_one_device
_acpi_video_bus_put_one_device:         ; @acpi_video_bus_put_one_device
	.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
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_7
; %bb.2:
	ldr	x0, [x19, #16]
	bl	_acpi_video_device_remove_fs
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #4]
Lloh0:
	adrp	x8, _ACPI_DEVICE_NOTIFY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACPI_DEVICE_NOTIFY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _acpi_video_device_notify@GOTPAGE
Lloh4:
	ldr	x8, [x8, _acpi_video_device_notify@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_acpi_remove_notify_handler
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_sysfs_remove_link
	ldr	x0, [x19, #24]
	bl	_backlight_device_unregister
	str	xzr, [x19, #24]
LBB0_4:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	x0, [x19, #16]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_sysfs_remove_link
	ldr	x0, [x19, #8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_sysfs_remove_link
	ldr	x0, [x19, #8]
	bl	_thermal_cooling_device_unregister
	str	xzr, [x19, #8]
LBB0_6:
	ldr	w0, [x19]
	bl	_video_output_unregister
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh12:
	adrp	x8, _ENOENT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_ACPI_DEVICE_NOTIFY,4,2         ; @ACPI_DEVICE_NOTIFY
	.comm	_acpi_video_device_notify,4,2   ; @acpi_video_device_notify
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"device"

l_.str.1:                               ; @.str.1
	.asciz	"thermal_cooling"

	.no_dead_strip	_acpi_video_bus_put_one_device
.subsections_via_symbols
