	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_smbus_cmi_add_cap
_acpi_smbus_cmi_add_cap:                ## @acpi_smbus_cmi_add_cap
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_ACPI_ALLOCATE_BUFFER@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -40(%rbp)
	movl	$0, -32(%rbp)
	movq	_smbus_methods@GOTPCREL(%rip), %r15
	movl	8(%r15), %esi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_1
## %bb.8:
	movl	4(%r15), %esi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movl	%ebx, %edi
	callq	_ACPI_DEBUG_PRINT
	jmp	LBB0_13
LBB0_1:
	movl	12(%r14), %edi
	movl	8(%r15), %esi
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %rcx
	xorl	%edx, %edx
	callq	_acpi_evaluate_object
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	%r15d, %edi
	callq	_ACPI_ERROR
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_9:
	movl	$1, 4(%r14)
	jmp	LBB0_13
LBB0_11:
	movl	$1, 8(%r14)
LBB0_13:
	xorl	%ebx, %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	(%rax), %rax
	movq	_ACPI_TYPE_PACKAGE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	(%rax), %rdi
	movq	_ACPI_TYPE_INTEGER@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_6
## %bb.7:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_DEBUG_PRINT
	movq	-48(%rbp), %rdi
	callq	_kfree
	movl	$1, (%r14)
	jmp	LBB0_13
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_ERROR
	movq	-48(%rbp), %rdi
	callq	_kfree
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_ALLOCATE_BUFFER,4,2       ## @ACPI_ALLOCATE_BUFFER
	.comm	_smbus_methods,12,2             ## @smbus_methods
	.comm	_AE_INFO,4,2                    ## @AE_INFO
	.comm	_EIO,4,2                        ## @EIO
	.comm	_ACPI_TYPE_PACKAGE,8,3          ## @ACPI_TYPE_PACKAGE
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"Invalid argument type"

	.comm	_ACPI_TYPE_INTEGER,8,3          ## @ACPI_TYPE_INTEGER
	.comm	_ACPI_DB_INFO,4,2               ## @ACPI_DB_INFO
	.no_dead_strip	_acpi_smbus_cmi_add_cap
.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_cap
_acpi_smbus_cmi_add_cap:                ; @acpi_smbus_cmi_add_cap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ACPI_ALLOCATE_BUFFER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACPI_ALLOCATE_BUFFER@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	stp	x8, xzr, [sp, #8]
	str	wzr, [sp, #24]
Lloh3:
	adrp	x21, _smbus_methods@GOTPAGE
Lloh4:
	ldr	x21, [x21, _smbus_methods@GOTPAGEOFF]
	ldr	w1, [x21, #8]
	mov	x0, x20
	bl	_strcmp
	cbz	w0, LBB0_4
; %bb.1:
	ldr	w1, [x21, #4]
	mov	x0, x20
	bl	_strcmp
	cbz	w0, LBB0_6
; %bb.2:
	ldr	w1, [x21]
	mov	x0, x20
	bl	_strcmp
	cbz	w0, LBB0_7
; %bb.3:
	mov	x0, x20
	bl	_ACPI_DEBUG_PRINT
	mov	w0, #0
	b	LBB0_14
LBB0_4:
	ldr	w0, [x19, #12]
	ldr	w1, [x21, #8]
	add	x3, sp, #8
	mov	x2, #0
	bl	_acpi_evaluate_object
	mov	x20, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_8
; %bb.5:
	mov	x0, x20
	bl	_ACPI_ERROR
	b	LBB0_13
LBB0_6:
	mov	w8, #1
	str	w8, [x19, #4]
	b	LBB0_14
LBB0_7:
	mov	w8, #1
	str	w8, [x19, #8]
	b	LBB0_14
LBB0_8:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_12
; %bb.9:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _ACPI_TYPE_PACKAGE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ACPI_TYPE_PACKAGE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.10:
	ldr	x0, [x8]
Lloh8:
	adrp	x8, _ACPI_TYPE_INTEGER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ACPI_TYPE_INTEGER@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.11:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_DEBUG_PRINT
	ldr	x0, [sp, #8]
	bl	_kfree
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_14
LBB0_12:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_ERROR
	ldr	x0, [sp, #8]
	bl	_kfree
LBB0_13:
Lloh13:
	adrp	x8, _EIO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_ALLOCATE_BUFFER,4,2       ; @ACPI_ALLOCATE_BUFFER
	.comm	_smbus_methods,12,2             ; @smbus_methods
	.comm	_AE_INFO,4,2                    ; @AE_INFO
	.comm	_EIO,4,2                        ; @EIO
	.comm	_ACPI_TYPE_PACKAGE,8,3          ; @ACPI_TYPE_PACKAGE
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"Invalid argument type"

	.comm	_ACPI_TYPE_INTEGER,8,3          ; @ACPI_TYPE_INTEGER
	.comm	_ACPI_DB_INFO,4,2               ; @ACPI_DB_INFO
	.no_dead_strip	_acpi_smbus_cmi_add_cap
.subsections_via_symbols
