	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hid_sensor_write_raw_hyst_value ## -- Begin function hid_sensor_write_raw_hyst_value
	.p2align	4, 0x90
_hid_sensor_write_raw_hyst_value:       ## @hid_sensor_write_raw_hyst_value
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edx, %ecx
	movl	%edx, %eax
	orl	%esi, %eax
	js	LBB0_1
## %bb.2:
	movl	%esi, %edx
	movq	%rdi, %rbx
	movl	16(%rdi), %esi
	movl	20(%rdi), %edi
	callq	_convert_to_vtf_format
	movq	%rax, -16(%rbp)
	movl	24(%rbx), %edi
	movl	8(%rbx), %edx
	movl	12(%rbx), %esi
	leaq	-16(%rbp), %r8
	movl	$8, %ecx
	callq	_sensor_hub_set_feature
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	cmpq	$0, -16(%rbp)
	js	LBB0_1
## %bb.4:
	movl	24(%rbx), %edi
	movl	8(%rbx), %edx
	movl	12(%rbx), %esi
	leaq	-16(%rbp), %r8
	movl	$8, %ecx
	callq	_sensor_hub_get_feature
	testl	%eax, %eax
	js	LBB0_1
## %bb.5:
	movq	-16(%rbp), %rax
	testq	%rax, %rax
	js	LBB0_1
## %bb.6:
	movq	%rax, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hid_sensor_write_raw_hyst_value ; -- Begin function hid_sensor_write_raw_hyst_value
	.p2align	2
_hid_sensor_write_raw_hyst_value:       ; @hid_sensor_write_raw_hyst_value
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x3, x2
	orr	w8, w2, w1
	tbnz	w8, #31, LBB0_6
; %bb.1:
	mov	x2, x1
	mov	x19, x0
	ldr	w0, [x0, #20]
	ldr	w1, [x19, #16]
	bl	_convert_to_vtf_format
	str	x0, [sp, #8]
	ldr	w0, [x19, #24]
	ldp	w2, w1, [x19, #8]
	add	x4, sp, #8
	mov	w3, #8
	bl	_sensor_hub_set_feature
	tbnz	w0, #31, LBB0_6
; %bb.2:
	ldr	x8, [sp, #8]
	tbnz	x8, #63, LBB0_6
; %bb.3:
	ldr	w0, [x19, #24]
	ldp	w2, w1, [x19, #8]
	add	x4, sp, #8
	mov	w3, #8
	bl	_sensor_hub_get_feature
	tbnz	w0, #31, LBB0_6
; %bb.4:
	ldr	x8, [sp, #8]
	tbnz	x8, #63, LBB0_6
; %bb.5:
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_7
LBB0_6:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	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
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
