	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$72, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	12(%r14), %eax
	movl	%eax, 48(%rbx)
	movq	%r14, %rdi
	callq	_acpi_device_name
	movq	_ACPI_SMBUS_HC_DEVICE_NAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_strcpy
	movq	%r14, %rdi
	callq	_acpi_device_class
	movq	_ACPI_SMBUS_HC_CLASS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_strcpy
	movq	%rbx, (%r14)
	movq	$0, (%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 56(%rbx)
	movq	_ACPI_TYPE_METHOD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	48(%rbx), %esi
	movq	_acpi_smbus_cmi_query_methods@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r15d, %r15d
	movl	$1, %edx
	movq	%rbx, %r8
	xorl	%r9d, %r9d
	callq	_acpi_walk_namespace
	cmpq	$0, (%rbx)
	je	LBB0_5
## %bb.3:
	movq	%rbx, %r12
	addq	$8, %r12
	movl	44(%rbx), %r13d
	movq	%r14, %rdi
	callq	_acpi_device_name
	leaq	L_.str(%rip), %rdx
	movl	%r13d, %edi
	movl	$4, %esi
	movq	%rax, %rcx
	callq	_snprintf
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_acpi_smbus_cmi_algorithm@GOTPCREL(%rip), %rax
	movq	%rax, 32(%rbx)
	movq	%rbx, 24(%rbx)
	movq	_I2C_CLASS_HWMON@GOTPCREL(%rip), %rax
	movq	_I2C_CLASS_SPD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 8(%rbx)
	leaq	8(%r14), %r13
	movq	%r13, 16(%rbx)
	movq	%r12, %rdi
	callq	_i2c_add_adapter
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
LBB0_5:
	movq	%rbx, %rdi
	callq	_kfree
	movq	$0, (%r14)
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_6:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %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_TYPE_METHOD,4,2           ## @ACPI_TYPE_METHOD
	.comm	_acpi_smbus_cmi_query_methods,4,2 ## @acpi_smbus_cmi_query_methods
	.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"

	.comm	_EIO,4,2                        ## @EIO
	.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, #72
	bl	_kzalloc
	cbz	x0, LBB0_5
; %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]
Lloh9:
	adrp	x8, _ACPI_TYPE_METHOD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ACPI_TYPE_METHOD@GOTPAGEOFF]
	stp	xzr, xzr, [x20, #56]
Lloh11:
	ldr	w0, [x8]
	ldr	w1, [x20, #48]
Lloh12:
	adrp	x8, _acpi_smbus_cmi_query_methods@GOTPAGE
Lloh13:
	ldr	x8, [x8, _acpi_smbus_cmi_query_methods@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	w2, #1
	mov	x4, x20
	mov	x5, #0
	bl	_acpi_walk_namespace
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	w21, [x20, #44]
	mov	x0, x19
	bl	_acpi_device_name
	mov	x3, x0
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	w1, #4
	bl	_snprintf
Lloh17:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x20, #40]
Lloh20:
	adrp	x8, _acpi_smbus_cmi_algorithm@GOTPAGE
Lloh21:
	ldr	x8, [x8, _acpi_smbus_cmi_algorithm@GOTPAGEOFF]
Lloh22:
	adrp	x9, _I2C_CLASS_HWMON@GOTPAGE
Lloh23:
	ldr	x9, [x9, _I2C_CLASS_HWMON@GOTPAGEOFF]
	str	x8, [x20, #32]
Lloh24:
	ldr	w8, [x9]
Lloh25:
	adrp	x9, _I2C_CLASS_SPD@GOTPAGE
Lloh26:
	ldr	x9, [x9, _I2C_CLASS_SPD@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w8, w9, w8
	mov	x0, x20
	str	w8, [x0, #8]!
	add	x21, x19, #8
	stp	x21, x20, [x20, #16]
	bl	_i2c_add_adapter
	cbz	x0, LBB0_7
; %bb.3:
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_err
LBB0_4:
	mov	x0, x20
	bl	_kfree
	str	xzr, [x19]
Lloh30:
	adrp	x8, _EIO@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh32:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.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_TYPE_METHOD,4,2           ; @ACPI_TYPE_METHOD
	.comm	_acpi_smbus_cmi_query_methods,4,2 ; @acpi_smbus_cmi_query_methods
	.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"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_acpi_smbus_cmi_add
.subsections_via_symbols
