	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_fujitsu_laptop_add
_acpi_fujitsu_laptop_add:               ## @acpi_fujitsu_laptop_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	%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, %r12
	addq	$16, %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	_fext@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_WARN_ONCE
	movq	%r12, (%r14)
	movq	%r12, %rdi
	callq	_acpi_device_name
	movq	_ACPI_FUJITSU_LAPTOP_DEVICE_NAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_strcpy
	movq	%r12, %rdi
	callq	_acpi_device_class
	movq	_ACPI_FUJITSU_CLASS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_strcpy
	movq	%r15, 8(%r12)
	leaq	24(%r15), %rdi
	callq	_spin_lock_init
	movq	%r15, %r14
	addq	$8, %r14
	movq	_RINGBUFFERSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$2, %esi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_kfifo_alloc
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_21
## %bb.3:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_acpi_device_name
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_acpi_device_bid
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_pr_info
	xorl	%ebx, %ebx
	movq	_FUNC_BUTTONS@GOTPCREL(%rip), %r13
	movq	_MAX_HOTKEY_RINGBUFFER_SIZE@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%r12, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_call_fext_func
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	1(%rbx), %edx
	cmpl	(%r14), %ebx
	movl	%edx, %ebx
	jl	LBB0_4
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_21
LBB0_5:
	movl	%ebx, %edx
LBB0_7:
	movl	(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_acpi_handle_debug
	movq	_FUNC_FLAGS@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_call_fext_func
	movq	%rax, (%r15)
	movq	_UNSUPPORTED_CMD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	cmovneq	%rax, %rbx
	movq	%rbx, (%r15)
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.8:
	movl	(%r14), %esi
	movq	%r12, %rdi
	movl	$4, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_call_fext_func
	movq	%rax, 16(%r15)
LBB0_9:
	movl	(%r12), %ebx
	movl	(%r13), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_call_fext_func
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	callq	_acpi_handle_info
	movq	_fujitsu_bl@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	testq	%rax, %rax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_16
## %bb.10:
	cmpq	$0, (%rax)
	je	LBB0_16
## %bb.11:
	xorl	%eax, %eax
	callq	_acpi_video_get_backlight_type
	movq	_acpi_backlight_vendor@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.12:
	movq	_fext@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_FUNC_BACKLIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BACKLIGHT_PARAM_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$2, %edx
	xorl	%r8d, %r8d
	callq	_call_fext_func
	movq	_BACKLIGHT_OFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.14:
	movq	_FB_BLANK_POWERDOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_13:
	movq	_FB_BLANK_UNBLANK@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
	movq	(%rbx), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
LBB0_16:
	movq	%r12, %rdi
	callq	_acpi_fujitsu_laptop_input_setup
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.17:
	movq	%r12, %rdi
	callq	_acpi_fujitsu_laptop_leds_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.18:
	movq	%r12, %rdi
	callq	_fujitsu_laptop_platform_add
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_19
LBB0_20:
	movq	%r14, %rdi
	callq	_kfifo_free
LBB0_21:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	xorl	%ebx, %ebx
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_fext,8,3                       ## @fext
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"More than one FUJ02E3 ACPI device was found.  Driver may not work as intended."

	.comm	_ACPI_FUJITSU_LAPTOP_DEVICE_NAME,4,2 ## @ACPI_FUJITSU_LAPTOP_DEVICE_NAME
	.comm	_ACPI_FUJITSU_CLASS,4,2         ## @ACPI_FUJITSU_CLASS
	.comm	_RINGBUFFERSIZE,4,2             ## @RINGBUFFERSIZE
L_.str.1:                               ## @.str.1
	.asciz	"ACPI: %s [%s]\n"

	.comm	_FUNC_BUTTONS,4,2               ## @FUNC_BUTTONS
	.comm	_MAX_HOTKEY_RINGBUFFER_SIZE,4,2 ## @MAX_HOTKEY_RINGBUFFER_SIZE
L_.str.2:                               ## @.str.2
	.asciz	"Discarded %i ringbuffer entries\n"

	.comm	_FUNC_FLAGS,4,2                 ## @FUNC_FLAGS
	.comm	_UNSUPPORTED_CMD,8,3            ## @UNSUPPORTED_CMD
L_.str.3:                               ## @.str.3
	.asciz	"BTNI: [0x%x]\n"

	.comm	_fujitsu_bl,8,3                 ## @fujitsu_bl
	.comm	_acpi_backlight_vendor,8,3      ## @acpi_backlight_vendor
	.comm	_FUNC_BACKLIGHT,4,2             ## @FUNC_BACKLIGHT
	.comm	_BACKLIGHT_PARAM_POWER,4,2      ## @BACKLIGHT_PARAM_POWER
	.comm	_BACKLIGHT_OFF,8,3              ## @BACKLIGHT_OFF
	.comm	_FB_BLANK_POWERDOWN,4,2         ## @FB_BLANK_POWERDOWN
	.comm	_FB_BLANK_UNBLANK,4,2           ## @FB_BLANK_UNBLANK
	.no_dead_strip	_acpi_fujitsu_laptop_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_laptop_add
_acpi_fujitsu_laptop_add:               ; @acpi_fujitsu_laptop_add
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	add	x0, x0, #16
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
Lloh2:
	adrp	x23, _fext@GOTPAGE
Lloh3:
	ldr	x23, [x23, _fext@GOTPAGEOFF]
	ldr	x0, [x23]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_WARN_ONCE
	str	x19, [x23]
	mov	x0, x19
	bl	_acpi_device_name
Lloh6:
	adrp	x8, _ACPI_FUJITSU_LAPTOP_DEVICE_NAME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ACPI_FUJITSU_LAPTOP_DEVICE_NAME@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_strcpy
	mov	x0, x19
	bl	_acpi_device_class
Lloh9:
	adrp	x8, _ACPI_FUJITSU_CLASS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ACPI_FUJITSU_CLASS@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_strcpy
	str	x21, [x19, #8]
	add	x0, x21, #24
	bl	_spin_lock_init
	add	x20, x21, #8
Lloh12:
	adrp	x8, _RINGBUFFERSIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RINGBUFFERSIZE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	lsl	w1, w8, #2
	ldr	w2, [x22]
	mov	x0, x20
	bl	_kfifo_alloc
	mov	x22, x0
	cbnz	w0, LBB0_17
; %bb.2:
	mov	x0, x19
	bl	_acpi_device_name
	mov	x22, x0
	mov	x0, x19
	bl	_acpi_device_bid
	mov	x2, x0
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	bl	_pr_info
	mov	w24, #0
Lloh17:
	adrp	x22, _FUNC_BUTTONS@GOTPAGE
Lloh18:
	ldr	x22, [x22, _FUNC_BUTTONS@GOTPAGEOFF]
Lloh19:
	adrp	x25, _MAX_HOTKEY_RINGBUFFER_SIZE@GOTPAGE
Lloh20:
	ldr	x25, [x25, _MAX_HOTKEY_RINGBUFFER_SIZE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #1
	mov	w3, #0
	mov	w4, #0
	bl	_call_fext_func
	cbz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w2, w24, #1
	ldr	w8, [x25]
	cmp	w24, w8
	mov	x24, x2
	b.lt	LBB0_3
	b	LBB0_7
LBB0_5:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_17
LBB0_6:
	mov	x2, x24
LBB0_7:
	ldr	w0, [x19]
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_acpi_handle_debug
Lloh26:
	adrp	x24, _FUNC_FLAGS@GOTPAGE
Lloh27:
	ldr	x24, [x24, _FUNC_FLAGS@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_call_fext_func
	str	x0, [x21]
Lloh28:
	adrp	x8, _UNSUPPORTED_CMD@GOTPAGE
Lloh29:
	ldr	x8, [x8, _UNSUPPORTED_CMD@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	cmp	x0, x8
	csel	x8, xzr, x0, eq
	str	x8, [x21]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #4
	mov	w3, #0
	mov	w4, #0
	bl	_call_fext_func
	str	x0, [x21, #16]
LBB0_9:
	ldr	w21, [x19]
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_call_fext_func
	mov	x2, x0
Lloh31:
	adrp	x1, l_.str.3@PAGE
Lloh32:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_acpi_handle_info
Lloh33:
	adrp	x21, _fujitsu_bl@GOTPAGE
Lloh34:
	ldr	x21, [x21, _fujitsu_bl@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_13
; %bb.10:
	ldr	x8, [x8]
	cbz	x8, LBB0_13
; %bb.11:
	bl	_acpi_video_get_backlight_type
Lloh35:
	adrp	x8, _acpi_backlight_vendor@GOTPAGE
Lloh36:
	ldr	x8, [x8, _acpi_backlight_vendor@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.12:
	ldr	x0, [x23]
Lloh38:
	adrp	x8, _FUNC_BACKLIGHT@GOTPAGE
Lloh39:
	ldr	x8, [x8, _FUNC_BACKLIGHT@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
Lloh41:
	adrp	x8, _BACKLIGHT_PARAM_POWER@GOTPAGE
Lloh42:
	ldr	x8, [x8, _BACKLIGHT_PARAM_POWER@GOTPAGEOFF]
Lloh43:
	ldr	w3, [x8]
	mov	w2, #2
	mov	w4, #0
	bl	_call_fext_func
Lloh44:
	adrp	x8, _BACKLIGHT_OFF@GOTPAGE
Lloh45:
	ldr	x8, [x8, _BACKLIGHT_OFF@GOTPAGEOFF]
Lloh46:
	ldr	x8, [x8]
Lloh47:
	adrp	x9, _FB_BLANK_POWERDOWN@GOTPAGE
Lloh48:
	ldr	x9, [x9, _FB_BLANK_POWERDOWN@GOTPAGEOFF]
Lloh49:
	adrp	x10, _FB_BLANK_UNBLANK@GOTPAGE
Lloh50:
	ldr	x10, [x10, _FB_BLANK_UNBLANK@GOTPAGEOFF]
	cmp	x0, x8
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	ldr	x9, [x21]
	ldr	x9, [x9]
	str	w8, [x9]
LBB0_13:
	mov	x0, x19
	bl	_acpi_fujitsu_laptop_input_setup
	mov	x22, x0
	cbnz	w0, LBB0_16
; %bb.14:
	mov	x0, x19
	bl	_acpi_fujitsu_laptop_leds_register
	mov	x22, x0
	cbnz	w0, LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_fujitsu_laptop_platform_add
	mov	x22, x0
	cbz	w0, LBB0_17
LBB0_16:
	mov	x0, x20
	bl	_kfifo_free
LBB0_17:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_fext,8,3                       ; @fext
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"More than one FUJ02E3 ACPI device was found.  Driver may not work as intended."

	.comm	_ACPI_FUJITSU_LAPTOP_DEVICE_NAME,4,2 ; @ACPI_FUJITSU_LAPTOP_DEVICE_NAME
	.comm	_ACPI_FUJITSU_CLASS,4,2         ; @ACPI_FUJITSU_CLASS
	.comm	_RINGBUFFERSIZE,4,2             ; @RINGBUFFERSIZE
l_.str.1:                               ; @.str.1
	.asciz	"ACPI: %s [%s]\n"

	.comm	_FUNC_BUTTONS,4,2               ; @FUNC_BUTTONS
	.comm	_MAX_HOTKEY_RINGBUFFER_SIZE,4,2 ; @MAX_HOTKEY_RINGBUFFER_SIZE
l_.str.2:                               ; @.str.2
	.asciz	"Discarded %i ringbuffer entries\n"

	.comm	_FUNC_FLAGS,4,2                 ; @FUNC_FLAGS
	.comm	_UNSUPPORTED_CMD,8,3            ; @UNSUPPORTED_CMD
l_.str.3:                               ; @.str.3
	.asciz	"BTNI: [0x%x]\n"

	.comm	_fujitsu_bl,8,3                 ; @fujitsu_bl
	.comm	_acpi_backlight_vendor,8,3      ; @acpi_backlight_vendor
	.comm	_FUNC_BACKLIGHT,4,2             ; @FUNC_BACKLIGHT
	.comm	_BACKLIGHT_PARAM_POWER,4,2      ; @BACKLIGHT_PARAM_POWER
	.comm	_BACKLIGHT_OFF,8,3              ; @BACKLIGHT_OFF
	.comm	_FB_BLANK_POWERDOWN,4,2         ; @FB_BLANK_POWERDOWN
	.comm	_FB_BLANK_UNBLANK,4,2           ; @FB_BLANK_UNBLANK
	.no_dead_strip	_acpi_fujitsu_laptop_add
.subsections_via_symbols
