	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_fujitsu_bl_add
_acpi_fujitsu_bl_add:                   ## @acpi_fujitsu_bl_add
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_acpi_video_get_backlight_type
	movq	_acpi_backlight_vendor@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	leaq	8(%r15), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, %r14
	movq	_fujitsu_bl@GOTPCREL(%rip), %rax
	movq	%r14, (%rax)
	movq	%r15, %rdi
	callq	_acpi_device_name
	movq	_ACPI_FUJITSU_BL_DEVICE_NAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_strcpy
	movq	%r15, %rdi
	callq	_acpi_device_class
	movq	_ACPI_FUJITSU_CLASS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_strcpy
	movq	%r14, (%r15)
	movq	%r15, %rdi
	callq	_acpi_device_name
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_acpi_device_bid
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_pr_info
	movq	%r15, %rdi
	callq	_get_max_brightness
	testq	%rax, %rax
	jg	LBB0_4
## %bb.3:
	movq	_FUJITSU_LCD_N_LEVELS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_4:
	movq	%r15, %rdi
	callq	_get_lcd_level
	movq	%r15, %rdi
	callq	_acpi_fujitsu_bl_input_setup
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fujitsu_backlight_register     ## TAILCALL
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_8:
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_acpi_backlight_vendor,8,3      ## @acpi_backlight_vendor
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_fujitsu_bl,8,3                 ## @fujitsu_bl
	.comm	_ACPI_FUJITSU_BL_DEVICE_NAME,4,2 ## @ACPI_FUJITSU_BL_DEVICE_NAME
	.comm	_ACPI_FUJITSU_CLASS,4,2         ## @ACPI_FUJITSU_CLASS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ACPI: %s [%s]\n"

	.comm	_FUJITSU_LCD_N_LEVELS,4,2       ## @FUJITSU_LCD_N_LEVELS
	.no_dead_strip	_acpi_fujitsu_bl_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_fujitsu_bl_add
_acpi_fujitsu_bl_add:                   ; @acpi_fujitsu_bl_add
	.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	x19, x0
	bl	_acpi_video_get_backlight_type
Lloh0:
	adrp	x8, _acpi_backlight_vendor@GOTPAGE
Lloh1:
	ldr	x8, [x8, _acpi_backlight_vendor@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.1:
	add	x0, x19, #8
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_devm_kzalloc
	cbz	x0, LBB0_7
; %bb.2:
	mov	x20, x0
Lloh6:
	adrp	x8, _fujitsu_bl@GOTPAGE
Lloh7:
	ldr	x8, [x8, _fujitsu_bl@GOTPAGEOFF]
Lloh8:
	str	x0, [x8]
	mov	x0, x19
	bl	_acpi_device_name
Lloh9:
	adrp	x8, _ACPI_FUJITSU_BL_DEVICE_NAME@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ACPI_FUJITSU_BL_DEVICE_NAME@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_strcpy
	mov	x0, x19
	bl	_acpi_device_class
Lloh12:
	adrp	x8, _ACPI_FUJITSU_CLASS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ACPI_FUJITSU_CLASS@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_strcpy
	str	x20, [x19]
	mov	x0, x19
	bl	_acpi_device_name
	mov	x21, x0
	mov	x0, x19
	bl	_acpi_device_bid
	mov	x2, x0
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_pr_info
	mov	x0, x19
	bl	_get_max_brightness
	cmp	x0, #0
	b.gt	LBB0_4
; %bb.3:
Lloh17:
	adrp	x8, _FUJITSU_LCD_N_LEVELS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FUJITSU_LCD_N_LEVELS@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_4:
	mov	x0, x19
	bl	_get_lcd_level
	mov	x0, x19
	bl	_acpi_fujitsu_bl_input_setup
	cbnz	w0, LBB0_9
; %bb.5:
	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
	b	_fujitsu_backlight_register
LBB0_6:
Lloh20:
	adrp	x8, _ENODEV@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_acpi_backlight_vendor,8,3      ; @acpi_backlight_vendor
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_fujitsu_bl,8,3                 ; @fujitsu_bl
	.comm	_ACPI_FUJITSU_BL_DEVICE_NAME,4,2 ; @ACPI_FUJITSU_BL_DEVICE_NAME
	.comm	_ACPI_FUJITSU_CLASS,4,2         ; @ACPI_FUJITSU_CLASS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ACPI: %s [%s]\n"

	.comm	_FUJITSU_LCD_N_LEVELS,4,2       ; @FUJITSU_LCD_N_LEVELS
	.no_dead_strip	_acpi_fujitsu_bl_add
.subsections_via_symbols
