	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_wmi_probe
_acpi_wmi_probe:                        ## @acpi_wmi_probe
	.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, %r15
	callq	_ACPI_COMPANION
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movl	(%rax), %edi
	movq	_ACPI_ADR_SPACE_EC@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_acpi_wmi_ec_space_handler@GOTPCREL(%rip), %rdx
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_acpi_install_address_space_handler
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_4:
	movl	(%r14), %edi
	movq	_ACPI_DEVICE_NOTIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_acpi_wmi_notify_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	callq	_acpi_install_notify_handler
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_6:
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_MKDEV
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_dev_name
	movq	_wmi_bus_class@GOTPCREL(%rip), %rdi
	leaq	L_.str.3(%rip), %r8
	movq	%r15, %rsi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	movl	%eax, %r9d
	callq	_device_create
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_8:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_dev_set_drvdata
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_parse_wdg
	testl	%eax, %eax
	je	LBB0_12
## %bb.9:
	movl	%eax, %r15d
	leaq	L_.str.4(%rip), %rdi
	callq	_pr_err
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_MKDEV
	movq	_wmi_bus_class@GOTPCREL(%rip), %rdi
	movl	%eax, %esi
	callq	_device_destroy
	movl	%r15d, %ebx
LBB0_10:
	movl	(%r14), %edi
	movq	_ACPI_DEVICE_NOTIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_acpi_wmi_notify_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_acpi_remove_notify_handler
LBB0_11:
	movl	(%r14), %edi
	movl	(%r13), %esi
	movq	_acpi_wmi_ec_space_handler@GOTPCREL(%rip), %rdx
	callq	_acpi_remove_address_space_handler
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ACPI companion is missing\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ACPI_ADR_SPACE_EC,4,2          ## @ACPI_ADR_SPACE_EC
	.comm	_acpi_wmi_ec_space_handler,4,2  ## @acpi_wmi_ec_space_handler
L_.str.1:                               ## @.str.1
	.asciz	"Error installing EC region handler\n"

	.comm	_ACPI_DEVICE_NOTIFY,4,2         ## @ACPI_DEVICE_NOTIFY
	.comm	_acpi_wmi_notify_handler,4,2    ## @acpi_wmi_notify_handler
L_.str.2:                               ## @.str.2
	.asciz	"Error installing notify handler\n"

	.comm	_wmi_bus_class,4,2              ## @wmi_bus_class
L_.str.3:                               ## @.str.3
	.asciz	"wmi_bus-%s"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to parse WDG method\n"

	.no_dead_strip	_acpi_wmi_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_wmi_probe
_acpi_wmi_probe:                        ; @acpi_wmi_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	bl	_ACPI_COMPANION
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x22, _ACPI_ADR_SPACE_EC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ACPI_ADR_SPACE_EC@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x2, _acpi_wmi_ec_space_handler@GOTPAGE
Lloh3:
	ldr	x2, [x2, _acpi_wmi_ec_space_handler@GOTPAGEOFF]
	mov	x3, #0
	mov	x4, #0
	bl	_acpi_install_address_space_handler
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_5
; %bb.2:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
LBB0_4:
	mov	x0, x20
	bl	_dev_err
Lloh8:
	adrp	x8, _ENODEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_13
LBB0_5:
	ldr	w0, [x19]
Lloh11:
	adrp	x23, _ACPI_DEVICE_NOTIFY@GOTPAGE
Lloh12:
	ldr	x23, [x23, _ACPI_DEVICE_NOTIFY@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh13:
	adrp	x24, _acpi_wmi_notify_handler@GOTPAGE
Lloh14:
	ldr	x24, [x24, _acpi_wmi_notify_handler@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x3, #0
	bl	_acpi_install_notify_handler
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_7
; %bb.6:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh17:
	adrp	x8, _ENODEV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_12
LBB0_7:
	mov	w1, #0
	bl	_MKDEV
	mov	x21, x0
	mov	x0, x20
	bl	_dev_name
	mov	x5, x0
Lloh20:
	adrp	x0, _wmi_bus_class@GOTPAGE
Lloh21:
	ldr	x0, [x0, _wmi_bus_class@GOTPAGEOFF]
Lloh22:
	adrp	x4, l_.str.3@PAGE
Lloh23:
	add	x4, x4, l_.str.3@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	mov	x3, #0
	bl	_device_create
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x20, x0
	b	LBB0_11
LBB0_9:
	mov	x0, x20
	mov	x1, x21
	bl	_dev_set_drvdata
	mov	x0, x21
	mov	x1, x19
	bl	_parse_wdg
	mov	x20, x0
	cbz	w0, LBB0_13
; %bb.10:
Lloh24:
	adrp	x0, l_.str.4@PAGE
Lloh25:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_err
	mov	w0, #0
	mov	w1, #0
	bl	_MKDEV
	mov	x1, x0
Lloh26:
	adrp	x0, _wmi_bus_class@GOTPAGE
Lloh27:
	ldr	x0, [x0, _wmi_bus_class@GOTPAGEOFF]
	bl	_device_destroy
LBB0_11:
	ldr	w0, [x19]
	ldr	w1, [x23]
	ldr	w2, [x24]
	bl	_acpi_remove_notify_handler
LBB0_12:
	ldr	w0, [x19]
	ldr	w1, [x22]
Lloh28:
	adrp	x2, _acpi_wmi_ec_space_handler@GOTPAGE
Lloh29:
	ldr	x2, [x2, _acpi_wmi_ec_space_handler@GOTPAGEOFF]
	bl	_acpi_remove_address_space_handler
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ACPI companion is missing\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ACPI_ADR_SPACE_EC,4,2          ; @ACPI_ADR_SPACE_EC
	.comm	_acpi_wmi_ec_space_handler,4,2  ; @acpi_wmi_ec_space_handler
l_.str.1:                               ; @.str.1
	.asciz	"Error installing EC region handler\n"

	.comm	_ACPI_DEVICE_NOTIFY,4,2         ; @ACPI_DEVICE_NOTIFY
	.comm	_acpi_wmi_notify_handler,4,2    ; @acpi_wmi_notify_handler
l_.str.2:                               ; @.str.2
	.asciz	"Error installing notify handler\n"

	.comm	_wmi_bus_class,4,2              ; @wmi_bus_class
l_.str.3:                               ; @.str.3
	.asciz	"wmi_bus-%s"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to parse WDG method\n"

	.no_dead_strip	_acpi_wmi_probe
.subsections_via_symbols
