	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sensor_set_auxtrip
_sensor_set_auxtrip:                    ## @sensor_set_auxtrip
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ACPI_TYPE_INTEGER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movl	$1, -64(%rbp)
	leaq	-40(%rbp), %rax
	movq	%rax, -56(%rbp)
	cmpl	$2, %esi
	jae	LBB0_1
## %bb.2:
	movl	%edx, %r14d
	movl	%esi, %r12d
	movl	%edi, %r15d
	testl	%esi, %esi
	jne	LBB0_3
## %bb.4:
	movq	_GET_AUX1@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_GET_AUX0@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %rcx
	movl	%r15d, %edi
	xorl	%edx, %edx
	callq	_acpi_evaluate_integer
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_7:
	movslq	%r14d, %rax
	movq	-48(%rbp), %rcx
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.8:
	cmpq	%rax, %rcx
	jbe	LBB0_10
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_16:
	xorl	%ebx, %ebx
LBB0_17:
	subl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	cmpq	%rax, %rcx
	jb	LBB0_1
LBB0_10:
	movl	%r14d, -40(%rbp)
	testl	%r12d, %r12d
	jne	LBB0_11
## %bb.12:
	movq	_SET_AUX0@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	movq	_SET_AUX1@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movl	%r15d, %edi
	callq	_acpi_evaluate_integer
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_14:
	xorl	%ebx, %ebx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_TYPE_INTEGER,4,2          ## @ACPI_TYPE_INTEGER
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GET_AUX0,4,2                   ## @GET_AUX0
	.comm	_GET_AUX1,4,2                   ## @GET_AUX1
	.comm	_EIO,4,2                        ## @EIO
	.comm	_SET_AUX1,4,2                   ## @SET_AUX1
	.comm	_SET_AUX0,4,2                   ## @SET_AUX0
	.no_dead_strip	_sensor_set_auxtrip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sensor_set_auxtrip
_sensor_set_auxtrip:                    ; @sensor_set_auxtrip
	.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
Lloh0:
	adrp	x8, _ACPI_TYPE_INTEGER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACPI_TYPE_INTEGER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	mov	w8, #1
	str	w8, [sp, #8]
	add	x8, sp, #24
	str	x8, [sp, #16]
	cmp	w1, #2
	b.hs	LBB0_5
; %bb.1:
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh3:
	adrp	x8, _GET_AUX0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GET_AUX0@GOTPAGEOFF]
Lloh5:
	adrp	x9, _GET_AUX1@GOTPAGE
Lloh6:
	ldr	x9, [x9, _GET_AUX1@GOTPAGEOFF]
	cmp	w1, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
	mov	x3, sp
	mov	x2, #0
	bl	_acpi_evaluate_integer
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_3
LBB0_2:
Lloh7:
	adrp	x8, _EIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
	sxtw	x8, w21
	ldr	x9, [sp]
	cmp	x9, x8
	cbz	w20, LBB0_8
; %bb.4:
	b.ls	LBB0_9
LBB0_5:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
LBB0_8:
	b.lo	LBB0_5
LBB0_9:
Lloh11:
	adrp	x8, _SET_AUX1@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SET_AUX1@GOTPAGEOFF]
	str	w21, [sp, #24]
Lloh13:
	adrp	x9, _SET_AUX0@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SET_AUX0@GOTPAGEOFF]
	cmp	w20, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x19
	bl	_acpi_evaluate_integer
	bl	_ACPI_FAILURE
	cbnz	x0, LBB0_2
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_TYPE_INTEGER,4,2          ; @ACPI_TYPE_INTEGER
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GET_AUX0,4,2                   ; @GET_AUX0
	.comm	_GET_AUX1,4,2                   ; @GET_AUX1
	.comm	_EIO,4,2                        ; @EIO
	.comm	_SET_AUX1,4,2                   ; @SET_AUX1
	.comm	_SET_AUX0,4,2                   ; @SET_AUX0
	.no_dead_strip	_sensor_set_auxtrip
.subsections_via_symbols
