	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stk_sensor_set_hw
_stk_sensor_set_hw:                     ## @stk_sensor_set_hw
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %ebx
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	_REG_HSTART@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %eax
	shrl	$3, %eax
	movzbl	%al, %edx
	callq	_stk_sensor_outb
	movl	%eax, %r14d
	movq	_REG_HSTOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %eax
	shrl	$3, %eax
	movzbl	%al, %edx
	movq	%r13, %rdi
	callq	_stk_sensor_outb
	movl	%eax, %r15d
	addl	%r14d, %r15d
	movq	_REG_HREF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-41(%rbp), %rdx
	movq	%r13, %rdi
	callq	_stk_sensor_inb
	movq	%rax, %r14
	addl	%r15d, %r14d
	movb	-41(%rbp), %al
	andb	$-64, %al
	andl	$7, %ebx
	andl	$7, %r12d
	leal	(%r12,%rbx,8), %ecx
	orb	%al, %cl
	movb	%cl, -41(%rbp)
	movl	$10, %edi
	callq	_msleep
	movq	_REG_HREF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	-41(%rbp), %edx
	movq	%r13, %rdi
	callq	_stk_sensor_outb
	movl	%eax, %ebx
	addl	%r14d, %ebx
	movq	_REG_VSTART@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	%r12d, %eax
	shrl	$3, %eax
	movzbl	%al, %edx
	movq	%r13, %rdi
	callq	_stk_sensor_outb
	movl	%eax, %r14d
	addl	%ebx, %r14d
	movq	_REG_VSTOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	%r15d, %eax
	shrl	$3, %eax
	movzbl	%al, %edx
	movq	%r13, %rdi
	callq	_stk_sensor_outb
	movl	%eax, %ebx
	addl	%r14d, %ebx
	movq	_REG_VREF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	leaq	-41(%rbp), %rdx
	callq	_stk_sensor_inb
	movq	%rax, %r14
	addl	%ebx, %r14d
	movb	-41(%rbp), %al
	andb	$-64, %al
	andl	$7, %r15d
	movq	%r12, %rdx
	andl	$7, %edx
	leal	(%rdx,%r15,8), %ecx
	orb	%al, %cl
	movb	%cl, -41(%rbp)
	movl	$10, %edi
	callq	_msleep
	movq	_REG_VREF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	-41(%rbp), %edx
	movq	%r13, %rdi
	callq	_stk_sensor_outb
	addl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_HSTART,4,2                 ## @REG_HSTART
	.comm	_REG_HSTOP,4,2                  ## @REG_HSTOP
	.comm	_REG_HREF,4,2                   ## @REG_HREF
	.comm	_REG_VSTART,4,2                 ## @REG_VSTART
	.comm	_REG_VSTOP,4,2                  ## @REG_VSTOP
	.comm	_REG_VREF,4,2                   ## @REG_VREF
	.no_dead_strip	_stk_sensor_set_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stk_sensor_set_hw
_stk_sensor_set_hw:                     ; @stk_sensor_set_hw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _REG_HSTART@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_HSTART@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ubfx	w2, w23, #3, #8
	bl	_stk_sensor_outb
	mov	x24, x0
Lloh3:
	adrp	x8, _REG_HSTOP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REG_HSTOP@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ubfx	w2, w22, #3, #8
	mov	x0, x19
	bl	_stk_sensor_outb
	add	w24, w0, w24
Lloh6:
	adrp	x25, _REG_HREF@GOTPAGE
Lloh7:
	ldr	x25, [x25, _REG_HREF@GOTPAGEOFF]
	ldr	w1, [x25]
	add	x2, sp, #15
	mov	x0, x19
	bl	_stk_sensor_inb
	add	w24, w24, w0
	ldrb	w8, [sp, #15]
	and	w8, w8, #0xc0
	and	w9, w23, #0x7
	bfi	w9, w22, #3, #3
	orr	w8, w8, w9
	strb	w8, [sp, #15]
	mov	w0, #10
	bl	_msleep
	ldr	w1, [x25]
	ldrb	w2, [sp, #15]
	mov	x0, x19
	bl	_stk_sensor_outb
	add	w22, w24, w0
Lloh8:
	adrp	x8, _REG_VSTART@GOTPAGE
Lloh9:
	ldr	x8, [x8, _REG_VSTART@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ubfx	w2, w21, #3, #8
	mov	x0, x19
	bl	_stk_sensor_outb
	add	w22, w22, w0
Lloh11:
	adrp	x8, _REG_VSTOP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REG_VSTOP@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ubfx	w2, w20, #3, #8
	mov	x0, x19
	bl	_stk_sensor_outb
	add	w22, w22, w0
Lloh14:
	adrp	x23, _REG_VREF@GOTPAGE
Lloh15:
	ldr	x23, [x23, _REG_VREF@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, sp, #15
	mov	x0, x19
	bl	_stk_sensor_inb
	add	w22, w22, w0
	ldrb	w8, [sp, #15]
	and	w8, w8, #0xc0
	and	w9, w21, #0x7
	bfi	w9, w20, #3, #3
	orr	w8, w8, w9
	strb	w8, [sp, #15]
	mov	w0, #10
	bl	_msleep
	ldr	w1, [x23]
	ldrb	w2, [sp, #15]
	mov	x0, x19
	bl	_stk_sensor_outb
	add	w0, w22, w0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_HSTART,4,2                 ; @REG_HSTART
	.comm	_REG_HSTOP,4,2                  ; @REG_HSTOP
	.comm	_REG_HREF,4,2                   ; @REG_HREF
	.comm	_REG_VSTART,4,2                 ; @REG_VSTART
	.comm	_REG_VSTOP,4,2                  ; @REG_VSTOP
	.comm	_REG_VREF,4,2                   ; @REG_VREF
	.no_dead_strip	_stk_sensor_set_hw
.subsections_via_symbols
