	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_smbus_cmi_add
_acpi_smbus_cmi_add:                    ## @acpi_smbus_cmi_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$80, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movl	12(%r13), %eax
	movl	%eax, 48(%r14)
	movq	%r13, %rdi
	callq	_acpi_device_name
	movq	_ACPI_SMBUS_HC_DEVICE_NAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_strcpy
	movq	%r13, %rdi
	callq	_acpi_device_class
	movq	_ACPI_SMBUS_HC_CLASS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_strcpy
	movq	%r14, (%r13)
	movq	$0, (%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 64(%r14)
	movq	_acpi_smbus_cmi_ids@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	8(%rbx), %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%rbx), %r15
	addq	$16, %rbx
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r15)
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_acpi_device_hid
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rbx), %rax
	movq	%rax, 56(%r14)
	jmp	LBB0_6
LBB0_7:
	movq	_ACPI_TYPE_METHOD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	48(%r14), %esi
	movq	_acpi_smbus_cmi_query_methods@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	$0, (%rsp)
	xorl	%r15d, %r15d
	movl	$1, %edx
	xorl	%r8d, %r8d
	movq	%r14, %r9
	callq	_acpi_walk_namespace
	cmpq	$0, (%r14)
	je	LBB0_8
## %bb.9:
	movq	%r14, %r12
	addq	$8, %r12
	movl	44(%r14), %ebx
	movq	%r13, %rdi
	callq	_acpi_device_name
	leaq	L_.str(%rip), %rdx
	movl	%ebx, %edi
	movl	$4, %esi
	movq	%rax, %rcx
	callq	_snprintf
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r14)
	movq	_acpi_smbus_cmi_algorithm@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r14)
	movq	%r14, 24(%r14)
	movq	_I2C_CLASS_HWMON@GOTPCREL(%rip), %rax
	movq	_I2C_CLASS_SPD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 8(%r14)
	leaq	8(%r13), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, 16(%r14)
	movq	%r12, %rdi
	callq	_i2c_add_adapter
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_err
	movl	%ebx, %r15d
	jmp	LBB0_11
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_12
LBB0_8:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_11:
	movq	%r14, %rdi
	callq	_kfree
	movq	$0, (%r13)
LBB0_12:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ACPI_SMBUS_HC_DEVICE_NAME,4,2  ## @ACPI_SMBUS_HC_DEVICE_NAME
	.comm	_ACPI_SMBUS_HC_CLASS,4,2        ## @ACPI_SMBUS_HC_CLASS
	.comm	_acpi_smbus_cmi_ids,8,3         ## @acpi_smbus_cmi_ids
	.comm	_ACPI_TYPE_METHOD,4,2           ## @ACPI_TYPE_METHOD
	.comm	_acpi_smbus_cmi_query_methods,4,2 ## @acpi_smbus_cmi_query_methods
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SMBus CMI adapter %s"

	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_acpi_smbus_cmi_algorithm,4,2   ## @acpi_smbus_cmi_algorithm
	.comm	_I2C_CLASS_HWMON,4,2            ## @I2C_CLASS_HWMON
	.comm	_I2C_CLASS_SPD,4,2              ## @I2C_CLASS_SPD
L_.str.1:                               ## @.str.1
	.asciz	"Couldn't register adapter!\n"

	.no_dead_strip	_acpi_smbus_cmi_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_smbus_cmi_add
_acpi_smbus_cmi_add:                    ; @acpi_smbus_cmi_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
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #80
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.1:
	mov	x20, x0
	ldr	w8, [x19, #12]
	str	w8, [x0, #48]
	mov	x0, x19
	bl	_acpi_device_name
Lloh3:
	adrp	x8, _ACPI_SMBUS_HC_DEVICE_NAME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ACPI_SMBUS_HC_DEVICE_NAME@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_strcpy
	mov	x0, x19
	bl	_acpi_device_class
Lloh6:
	adrp	x8, _ACPI_SMBUS_HC_CLASS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ACPI_SMBUS_HC_CLASS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_strcpy
	str	x20, [x19]
	str	xzr, [x20]
	stp	xzr, xzr, [x20, #64]
Lloh9:
	adrp	x8, _acpi_smbus_cmi_ids@GOTPAGE
Lloh10:
	ldr	x8, [x8, _acpi_smbus_cmi_ids@GOTPAGEOFF]
Lloh11:
	ldr	x22, [x8]
	ldr	x21, [x22, #8]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x21, [x22, #24]
	add	x22, x22, #16
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	cbz	x8, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_acpi_device_hid
	mov	x1, x0
	mov	x0, x21
	bl	_strcmp
	cbnz	w0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22]
	str	x8, [x20, #56]
	b	LBB0_2
LBB0_6:
Lloh12:
	adrp	x8, _ACPI_TYPE_METHOD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ACPI_TYPE_METHOD@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	w1, [x20, #48]
Lloh15:
	adrp	x8, _acpi_smbus_cmi_query_methods@GOTPAGE
Lloh16:
	ldr	x8, [x8, _acpi_smbus_cmi_query_methods@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	mov	w2, #1
	mov	x4, #0
	mov	x5, x20
	mov	x6, #0
	bl	_acpi_walk_namespace
	ldr	x8, [x20]
	cbz	x8, LBB0_10
; %bb.7:
	ldr	w21, [x20, #44]
	mov	x0, x19
	bl	_acpi_device_name
	mov	x3, x0
Lloh18:
	adrp	x2, l_.str@PAGE
Lloh19:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	w1, #4
	bl	_snprintf
Lloh20:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [x20, #40]
Lloh23:
	adrp	x8, _acpi_smbus_cmi_algorithm@GOTPAGE
Lloh24:
	ldr	x8, [x8, _acpi_smbus_cmi_algorithm@GOTPAGEOFF]
Lloh25:
	adrp	x9, _I2C_CLASS_HWMON@GOTPAGE
Lloh26:
	ldr	x9, [x9, _I2C_CLASS_HWMON@GOTPAGEOFF]
	str	x8, [x20, #32]
Lloh27:
	ldr	w8, [x9]
Lloh28:
	adrp	x9, _I2C_CLASS_SPD@GOTPAGE
Lloh29:
	ldr	x9, [x9, _I2C_CLASS_SPD@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w8, w9, w8
	mov	x0, x20
	str	w8, [x0, #8]!
	add	x22, x19, #8
	stp	x22, x20, [x20, #16]
	bl	_i2c_add_adapter
	mov	x21, x0
	cbz	w0, LBB0_12
; %bb.8:
Lloh31:
	adrp	x1, l_.str.1@PAGE
Lloh32:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_dev_err
	b	LBB0_11
LBB0_9:
Lloh33:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_12
LBB0_10:
Lloh36:
	adrp	x8, _ENODEV@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_11:
	mov	x0, x20
	bl	_kfree
	str	xzr, [x19]
LBB0_12:
	mov	x0, x21
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ACPI_SMBUS_HC_DEVICE_NAME,4,2  ; @ACPI_SMBUS_HC_DEVICE_NAME
	.comm	_ACPI_SMBUS_HC_CLASS,4,2        ; @ACPI_SMBUS_HC_CLASS
	.comm	_acpi_smbus_cmi_ids,8,3         ; @acpi_smbus_cmi_ids
	.comm	_ACPI_TYPE_METHOD,4,2           ; @ACPI_TYPE_METHOD
	.comm	_acpi_smbus_cmi_query_methods,4,2 ; @acpi_smbus_cmi_query_methods
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SMBus CMI adapter %s"

	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_acpi_smbus_cmi_algorithm,4,2   ; @acpi_smbus_cmi_algorithm
	.comm	_I2C_CLASS_HWMON,4,2            ; @I2C_CLASS_HWMON
	.comm	_I2C_CLASS_SPD,4,2              ; @I2C_CLASS_SPD
l_.str.1:                               ; @.str.1
	.asciz	"Couldn't register adapter!\n"

	.no_dead_strip	_acpi_smbus_cmi_add
.subsections_via_symbols
