	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function validate_hwmon_pack
_validate_hwmon_pack:                   ## @validate_hwmon_pack
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	cmpl	$0, (%rdi)
	jne	LBB0_1
## %bb.2:
	movq	__HWMON_NEW_PACK_SIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	__HWMON_OLD_PACK_SIZE@GOTPCREL(%rip), %rax
LBB0_3:
	movq	8(%rbx), %r14
	movl	(%r15), %edx
	movq	_ACPI_TYPE_PACKAGE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	jne	LBB0_4
## %bb.7:
	movl	(%rax), %ecx
	cmpl	%ecx, %edx
	jne	LBB0_8
## %bb.9:
	movq	_HWMON_PACK_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_atk_get_pack_member
	movl	(%rax), %edx
	movq	_ACPI_TYPE_INTEGER@GOTPCREL(%rip), %r12
	cmpl	(%r12), %edx
	jne	LBB0_10
## %bb.11:
	movq	_HWMON_PACK_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_atk_get_pack_member
	movl	(%rax), %edx
	movq	_ACPI_TYPE_STRING@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jne	LBB0_12
## %bb.13:
	movq	_HWMON_PACK_LIMIT1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_atk_get_pack_member
	movl	(%rax), %edx
	cmpl	(%r12), %edx
	jne	LBB0_14
## %bb.15:
	movq	_HWMON_PACK_LIMIT2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_atk_get_pack_member
	movl	(%rax), %edx
	cmpl	(%r12), %edx
	jne	LBB0_16
## %bb.17:
	movq	_HWMON_PACK_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_atk_get_pack_member
	movl	(%rax), %edx
	cmpl	(%r12), %edx
	jne	LBB0_18
## %bb.19:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_atk_print_sensor
	xorl	%ebx, %ebx
	jmp	LBB0_20
LBB0_4:
	leaq	L_.str(%rip), %rsi
LBB0_5:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_warn
	jmp	LBB0_6
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_warn
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_20:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_5
LBB0_12:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_5
LBB0_14:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_5
LBB0_16:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_5
LBB0_18:
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	__HWMON_OLD_PACK_SIZE,4,2       ## @_HWMON_OLD_PACK_SIZE
	.comm	__HWMON_NEW_PACK_SIZE,4,2       ## @_HWMON_NEW_PACK_SIZE
	.comm	_ACPI_TYPE_PACKAGE,4,2          ## @ACPI_TYPE_PACKAGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid type: %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Invalid package size: %d, expected: %d\n"

	.comm	_HWMON_PACK_FLAGS,4,2           ## @HWMON_PACK_FLAGS
	.comm	_ACPI_TYPE_INTEGER,4,2          ## @ACPI_TYPE_INTEGER
L_.str.2:                               ## @.str.2
	.asciz	"Invalid type (flag): %d\n"

	.comm	_HWMON_PACK_NAME,4,2            ## @HWMON_PACK_NAME
	.comm	_ACPI_TYPE_STRING,4,2           ## @ACPI_TYPE_STRING
L_.str.3:                               ## @.str.3
	.asciz	"Invalid type (name): %d\n"

	.comm	_HWMON_PACK_LIMIT1,4,2          ## @HWMON_PACK_LIMIT1
L_.str.4:                               ## @.str.4
	.asciz	"Invalid type (limit1): %d\n"

	.comm	_HWMON_PACK_LIMIT2,4,2          ## @HWMON_PACK_LIMIT2
L_.str.5:                               ## @.str.5
	.asciz	"Invalid type (limit2): %d\n"

	.comm	_HWMON_PACK_ENABLE,4,2          ## @HWMON_PACK_ENABLE
L_.str.6:                               ## @.str.6
	.asciz	"Invalid type (enable): %d\n"

	.comm	_HWMON_PACK_UNK1,8,3            ## @HWMON_PACK_UNK1
	.comm	_HWMON_PACK_UNK2,8,3            ## @HWMON_PACK_UNK2
	.no_dead_strip	_validate_hwmon_pack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function validate_hwmon_pack
_validate_hwmon_pack:                   ; @validate_hwmon_pack
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	ldr	x19, [x0, #8]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, __HWMON_OLD_PACK_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, __HWMON_OLD_PACK_SIZE@GOTPAGEOFF]
Lloh2:
	adrp	x10, __HWMON_NEW_PACK_SIZE@GOTPAGE
Lloh3:
	ldr	x10, [x10, __HWMON_NEW_PACK_SIZE@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x10, x9, eq
	ldr	w2, [x1]
Lloh4:
	adrp	x9, _ACPI_TYPE_PACKAGE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _ACPI_TYPE_PACKAGE@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	cmp	w2, w9
	b.ne	LBB0_8
; %bb.1:
	ldr	w8, [x8]
	cmp	w2, w8
	b.ne	LBB0_9
; %bb.2:
	mov	x20, x1
	mov	x21, x0
Lloh7:
	adrp	x8, _HWMON_PACK_FLAGS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HWMON_PACK_FLAGS@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	bl	_atk_get_pack_member
	ldr	w2, [x0]
Lloh10:
	adrp	x22, _ACPI_TYPE_INTEGER@GOTPAGE
Lloh11:
	ldr	x22, [x22, _ACPI_TYPE_INTEGER@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w2, w8
	b.ne	LBB0_10
; %bb.3:
Lloh12:
	adrp	x8, _HWMON_PACK_NAME@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HWMON_PACK_NAME@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_atk_get_pack_member
	ldr	w2, [x0]
Lloh15:
	adrp	x8, _ACPI_TYPE_STRING@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ACPI_TYPE_STRING@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w2, w8
	b.ne	LBB0_11
; %bb.4:
Lloh18:
	adrp	x8, _HWMON_PACK_LIMIT1@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HWMON_PACK_LIMIT1@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_atk_get_pack_member
	ldr	w2, [x0]
	ldr	w8, [x22]
	cmp	w2, w8
	b.ne	LBB0_12
; %bb.5:
Lloh21:
	adrp	x8, _HWMON_PACK_LIMIT2@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HWMON_PACK_LIMIT2@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_atk_get_pack_member
	ldr	w2, [x0]
	ldr	w8, [x22]
	cmp	w2, w8
	b.ne	LBB0_13
; %bb.6:
Lloh24:
	adrp	x8, _HWMON_PACK_ENABLE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _HWMON_PACK_ENABLE@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_atk_get_pack_member
	ldr	w2, [x0]
	ldr	w8, [x22]
	cmp	w2, w8
	b.ne	LBB0_14
; %bb.7:
	mov	x0, x21
	mov	x1, x20
	bl	_atk_print_sensor
	mov	w0, #0
	b	LBB0_16
LBB0_8:
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_15
LBB0_9:
	str	x8, [sp]
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_10:
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_15
LBB0_11:
Lloh33:
	adrp	x1, l_.str.3@PAGE
Lloh34:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_15
LBB0_12:
Lloh35:
	adrp	x1, l_.str.4@PAGE
Lloh36:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_15
LBB0_13:
Lloh37:
	adrp	x1, l_.str.5@PAGE
Lloh38:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_15
LBB0_14:
Lloh39:
	adrp	x1, l_.str.6@PAGE
Lloh40:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_15:
	mov	x0, x19
	bl	_dev_warn
Lloh41:
	adrp	x8, _EINVAL@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	__HWMON_OLD_PACK_SIZE,4,2       ; @_HWMON_OLD_PACK_SIZE
	.comm	__HWMON_NEW_PACK_SIZE,4,2       ; @_HWMON_NEW_PACK_SIZE
	.comm	_ACPI_TYPE_PACKAGE,4,2          ; @ACPI_TYPE_PACKAGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid type: %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Invalid package size: %d, expected: %d\n"

	.comm	_HWMON_PACK_FLAGS,4,2           ; @HWMON_PACK_FLAGS
	.comm	_ACPI_TYPE_INTEGER,4,2          ; @ACPI_TYPE_INTEGER
l_.str.2:                               ; @.str.2
	.asciz	"Invalid type (flag): %d\n"

	.comm	_HWMON_PACK_NAME,4,2            ; @HWMON_PACK_NAME
	.comm	_ACPI_TYPE_STRING,4,2           ; @ACPI_TYPE_STRING
l_.str.3:                               ; @.str.3
	.asciz	"Invalid type (name): %d\n"

	.comm	_HWMON_PACK_LIMIT1,4,2          ; @HWMON_PACK_LIMIT1
l_.str.4:                               ; @.str.4
	.asciz	"Invalid type (limit1): %d\n"

	.comm	_HWMON_PACK_LIMIT2,4,2          ; @HWMON_PACK_LIMIT2
l_.str.5:                               ; @.str.5
	.asciz	"Invalid type (limit2): %d\n"

	.comm	_HWMON_PACK_ENABLE,4,2          ; @HWMON_PACK_ENABLE
l_.str.6:                               ; @.str.6
	.asciz	"Invalid type (enable): %d\n"

	.comm	_HWMON_PACK_UNK1,8,3            ; @HWMON_PACK_UNK1
	.comm	_HWMON_PACK_UNK2,8,3            ; @HWMON_PACK_UNK2
	.no_dead_strip	_validate_hwmon_pack
.subsections_via_symbols
