	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_fujitsu_add
_acpi_fujitsu_add:                      ## @acpi_fujitsu_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
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	movq	%rdi, %r14
	movl	4(%rdi), %edi
	movq	_METHOD_NAME__CRS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_fujitsu_walk_resources@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	callq	_acpi_walk_resources
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	jne	LBB0_9
## %bb.2:
	movq	_fujitsu@GOTPCREL(%rip), %r15
	cmpl	$0, 8(%r15)
	je	LBB0_9
## %bb.3:
	cmpl	$0, 4(%r15)
	je	LBB0_9
## %bb.4:
	movq	%r14, %rdi
	callq	_acpi_device_name
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_acpi_device_hid
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	callq	_sprintf
	movq	%r14, %rdi
	callq	_acpi_device_class
	movq	_ACPI_FUJITSU_CLASS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	callq	_sprintf
	movl	12(%r15), %ebx
	movq	%r14, %rdi
	callq	_acpi_device_hid
	leaq	L_.str.2(%rip), %rdx
	movl	%ebx, %edi
	movl	$4, %esi
	movq	%rax, %rcx
	callq	_snprintf
	movq	%r14, %rdi
	callq	_acpi_device_name
	movl	12(%r15), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_input_fujitsu_setup
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.5:
	movl	(%r15), %esi
	movl	4(%r15), %edi
	movq	_MODULENAME@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	callq	_request_region
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_12
## %bb.6:
	xorl	%eax, %eax
	callq	_fujitsu_reset
	movl	8(%r15), %edi
	movq	_fujitsu_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r14), %ecx
	movl	%esi, %r8d
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_11
## %bb.7:
	movl	%eax, %r14d
	movl	(%r15), %esi
	movl	4(%r15), %edi
	callq	_release_region
	xorl	%eax, %eax
	callq	_input_fujitsu_remove
	movl	%r14d, %ebx
	jmp	LBB0_11
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_9:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_10:
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	xorl	%eax, %eax
	callq	_input_fujitsu_remove
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_METHOD_NAME__CRS,4,2           ## @METHOD_NAME__CRS
	.comm	_fujitsu_walk_resources,4,2     ## @fujitsu_walk_resources
	.comm	_fujitsu,16,2                   ## @fujitsu
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Fujitsu %s"

L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.comm	_ACPI_FUJITSU_CLASS,8,3         ## @ACPI_FUJITSU_CLASS
L_.str.2:                               ## @.str.2
	.asciz	"%s/input0"

	.comm	_MODULENAME,4,2                 ## @MODULENAME
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_fujitsu_interrupt,4,2          ## @fujitsu_interrupt
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.no_dead_strip	_acpi_fujitsu_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_add
_acpi_fujitsu_add:                      ; @acpi_fujitsu_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
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x8, _METHOD_NAME__CRS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _METHOD_NAME__CRS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _fujitsu_walk_resources@GOTPAGE
Lloh4:
	ldr	x8, [x8, _fujitsu_walk_resources@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x3, #0
	bl	_acpi_walk_resources
	bl	_ACPI_FAILURE
Lloh6:
	adrp	x21, _fujitsu@GOTPAGE
Lloh7:
	ldr	x21, [x21, _fujitsu@GOTPAGEOFF]
	ldp	w9, w8, [x21, #4]
	cmp	x0, #0
	ccmp	w8, #0, #4, eq
	ccmp	w9, #0, #4, ne
	b.ne	LBB0_5
; %bb.2:
Lloh8:
	adrp	x8, _ENODEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_acpi_device_name
	mov	x20, x0
	mov	x0, x19
	bl	_acpi_device_hid
	mov	x2, x0
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_sprintf
	mov	x0, x19
	bl	_acpi_device_class
Lloh14:
	adrp	x8, _ACPI_FUJITSU_CLASS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ACPI_FUJITSU_CLASS@GOTPAGEOFF]
Lloh16:
	ldr	x2, [x8]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_sprintf
	ldr	w20, [x21, #12]
	mov	x0, x19
	bl	_acpi_device_hid
	mov	x3, x0
Lloh19:
	adrp	x2, l_.str.2@PAGE
Lloh20:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	w1, #4
	bl	_snprintf
	mov	x0, x19
	bl	_acpi_device_name
	mov	x1, x0
	ldr	w2, [x21, #12]
	mov	x0, x19
	bl	_input_fujitsu_setup
	mov	x19, x0
	cbz	w0, LBB0_7
LBB0_6:
	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
	ret
LBB0_7:
	ldp	w1, w0, [x21]
Lloh21:
	adrp	x19, _MODULENAME@GOTPAGE
Lloh22:
	ldr	x19, [x19, _MODULENAME@GOTPAGEOFF]
	ldr	w2, [x19]
	bl	_request_region
	cbz	w0, LBB0_10
; %bb.8:
	bl	_fujitsu_reset
Lloh23:
	adrp	x8, _fujitsu_interrupt@GOTPAGE
Lloh24:
	ldr	x8, [x8, _fujitsu_interrupt@GOTPAGEOFF]
	ldr	w0, [x21, #8]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	ldr	w3, [x19]
	mov	x4, x1
	bl	_request_irq
	mov	x19, x0
	cbz	w0, LBB0_6
; %bb.9:
	ldp	w1, w0, [x21]
	bl	_release_region
	bl	_input_fujitsu_remove
	b	LBB0_6
LBB0_10:
	bl	_input_fujitsu_remove
Lloh29:
	adrp	x8, _EBUSY@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_METHOD_NAME__CRS,4,2           ; @METHOD_NAME__CRS
	.comm	_fujitsu_walk_resources,4,2     ; @fujitsu_walk_resources
	.comm	_fujitsu,16,2                   ; @fujitsu
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Fujitsu %s"

l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.comm	_ACPI_FUJITSU_CLASS,8,3         ; @ACPI_FUJITSU_CLASS
l_.str.2:                               ; @.str.2
	.asciz	"%s/input0"

	.comm	_MODULENAME,4,2                 ; @MODULENAME
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_fujitsu_interrupt,4,2          ; @fujitsu_interrupt
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.no_dead_strip	_acpi_fujitsu_add
.subsections_via_symbols
