	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __hdaps_read_pair
___hdaps_read_pair:                     ## @__hdaps_read_pair
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movl	%esi, %r13d
	movl	%edi, %r12d
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	___device_refresh_sync
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_2:
	movl	%r13d, %edi
	callq	_inw
	movl	%eax, (%r14)
	movl	%r12d, %edi
	callq	_inw
	movl	%eax, (%r15)
	movq	_HDAPS_PORT_KMACT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_inb
	movq	_km_activity@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	___device_complete
	movq	_hdaps_invert@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	movq	_HDAPS_X_AXIS@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_4
## %bb.3:
	negl	(%r15)
	movl	(%rcx), %eax
LBB0_4:
	movq	_HDAPS_Y_AXIS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	negl	(%r14)
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_HDAPS_PORT_KMACT,4,2           ## @HDAPS_PORT_KMACT
	.comm	_km_activity,4,2                ## @km_activity
	.comm	_hdaps_invert,4,2               ## @hdaps_invert
	.comm	_HDAPS_X_AXIS,4,2               ## @HDAPS_X_AXIS
	.comm	_HDAPS_Y_AXIS,4,2               ## @HDAPS_Y_AXIS
	.no_dead_strip	___hdaps_read_pair
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __hdaps_read_pair
___hdaps_read_pair:                     ; @__hdaps_read_pair
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	bl	___device_refresh_sync
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_2:
	mov	x0, x22
	bl	_inw
	str	w0, [x19]
	mov	x0, x21
	bl	_inw
	str	w0, [x20]
Lloh3:
	adrp	x8, _HDAPS_PORT_KMACT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HDAPS_PORT_KMACT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_inb
Lloh6:
	adrp	x8, _km_activity@GOTPAGE
Lloh7:
	ldr	x8, [x8, _km_activity@GOTPAGEOFF]
Lloh8:
	str	w0, [x8]
	bl	___device_complete
Lloh9:
	adrp	x9, _hdaps_invert@GOTPAGE
Lloh10:
	ldr	x9, [x9, _hdaps_invert@GOTPAGEOFF]
	ldr	w8, [x9]
Lloh11:
	adrp	x10, _HDAPS_X_AXIS@GOTPAGE
Lloh12:
	ldr	x10, [x10, _HDAPS_X_AXIS@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	w8, [x20]
	neg	w8, w8
	str	w8, [x20]
	ldr	w8, [x9]
LBB0_4:
Lloh14:
	adrp	x9, _HDAPS_Y_AXIS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _HDAPS_Y_AXIS@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	mov	w0, #0
	ldr	w8, [x19]
	neg	w8, w8
	str	w8, [x19]
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_HDAPS_PORT_KMACT,4,2           ; @HDAPS_PORT_KMACT
	.comm	_km_activity,4,2                ; @km_activity
	.comm	_hdaps_invert,4,2               ; @hdaps_invert
	.comm	_HDAPS_X_AXIS,4,2               ; @HDAPS_X_AXIS
	.comm	_HDAPS_Y_AXIS,4,2               ; @HDAPS_Y_AXIS
	.no_dead_strip	___hdaps_read_pair
.subsections_via_symbols
