	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PAD_Read                       ## -- Begin function PAD_Read
	.p2align	4, 0x90
_PAD_Read:                              ## @PAD_Read
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	__CPU_ISR_Disable
	movq	___pad_pendingbits@GOTPCREL(%rip), %r14
	movq	___pad_checkingbits@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %r15
	movl	%ebx, %edi
	callq	_PAD_ENABLEDMASK
	testl	%eax, (%r14)
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%edi, %edi
	callq	_PAD_Reset
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_PAD_ERR_NOT_READY@GOTPCREL(%rip), %rax
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rax), %rax
	movq	%rax, 8(%r13)
LBB0_21:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rcx
LBB0_22:                                ##   in Loop: Header=BB0_1 Depth=1
	incq	%rbx
	addq	$16, %r13
	cmpq	$4, %rbx
	jne	LBB0_1
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %r12d
	movq	___pad_resettingbits@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	___pad_resettingchan@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	%rax, %rbx
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	___pad_enabledbits@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %edi
	callq	_SI_IsChanBusy
	testq	%rax, %rax
	je	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_PAD_ERR_TRANSFER@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %edi
	callq	_SI_GetStatus
	movq	_SI_ERROR_NO_RESPONSE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %edi
	leaq	-56(%rbp), %rsi
	callq	_SI_GetResponse
	movq	___pad_waitingbits@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %edi
	callq	___pad_disable
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_PAD_ERR_NO_CONTROLLER@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %edi
	callq	_SI_GetType
	movq	_SI_WIRELESS_STATE@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	$0, %eax
	cmovnel	%eax, %r12d
	orl	%r12d, -60(%rbp)                ## 4-byte Folded Spill
	movl	%ebx, %edi
	leaq	-56(%rbp), %rsi
	callq	_SI_GetResponse
	testl	%eax, %eax
	je	LBB0_10
## %bb.17:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, -56(%rbp)
	js	LBB0_10
## %bb.18:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %edi
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdx
	callq	___pad_makestatus
	movl	(%r13), %eax
	testl	$8192, %eax                     ## imm = 0x2000
	jne	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_PAD_ERR_NONE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 8(%r13)
	andl	$-129, %eax
	movl	%eax, (%r13)
	jmp	LBB0_21
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_PAD_ERR_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r13)
	movq	%r15, %rcx
	movl	(%r15), %eax
	testl	%r12d, %eax
	jne	LBB0_22
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	orl	%r12d, %eax
	movl	%eax, (%rcx)
	movq	___pad_receivecheckcallback@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_SI_GetTypeAsync
	jmp	LBB0_21
LBB0_19:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_PAD_ERR_TRANSFER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r13)
	movq	___pad_origin@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %ecx
	movq	___pad_originupdatecallback@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	$0, (%rsp)
	movl	%ebx, %edi
	movq	___pad_cmdreadorigin@GOTPCREL(%rip), %rsi
	movl	$1, %edx
	movl	$10, %r8d
	callq	_SI_Transfer
	jmp	LBB0_21
LBB0_23:
	callq	__CPU_ISR_Restore
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_25
## %bb.24:
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	___pad_pendingbits,4,2          ## @__pad_pendingbits
	.comm	_PAD_ERR_NOT_READY,8,3          ## @PAD_ERR_NOT_READY
	.comm	___pad_resettingbits,4,2        ## @__pad_resettingbits
	.comm	___pad_resettingchan,4,2        ## @__pad_resettingchan
	.comm	___pad_enabledbits,4,2          ## @__pad_enabledbits
	.comm	_PAD_ERR_NO_CONTROLLER,8,3      ## @PAD_ERR_NO_CONTROLLER
	.comm	_PAD_ERR_TRANSFER,8,3           ## @PAD_ERR_TRANSFER
	.comm	_SI_ERROR_NO_RESPONSE,4,2       ## @SI_ERROR_NO_RESPONSE
	.comm	___pad_waitingbits,4,2          ## @__pad_waitingbits
	.comm	_PAD_ERR_NONE,8,3               ## @PAD_ERR_NONE
	.comm	___pad_checkingbits,4,2         ## @__pad_checkingbits
	.comm	___pad_receivecheckcallback,4,2 ## @__pad_receivecheckcallback
	.comm	_SI_WIRELESS_STATE,4,2          ## @SI_WIRELESS_STATE
	.comm	___pad_cmdreadorigin,4,2        ## @__pad_cmdreadorigin
	.comm	___pad_origin,8,3               ## @__pad_origin
	.comm	___pad_originupdatecallback,4,2 ## @__pad_originupdatecallback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PAD_Read                       ; -- Begin function PAD_Read
	.p2align	2
_PAD_Read:                              ; @PAD_Read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	bl	__CPU_ISR_Disable
	mov	x21, #0
	mov	w19, #0
Lloh3:
	adrp	x24, ___pad_pendingbits@GOTPAGE
Lloh4:
	ldr	x24, [x24, ___pad_pendingbits@GOTPAGEOFF]
Lloh5:
	adrp	x25, ___pad_resettingbits@GOTPAGE
Lloh6:
	ldr	x25, [x25, ___pad_resettingbits@GOTPAGEOFF]
Lloh7:
	adrp	x26, ___pad_resettingchan@GOTPAGE
Lloh8:
	ldr	x26, [x26, ___pad_resettingchan@GOTPAGEOFF]
Lloh9:
	adrp	x27, _PAD_ERR_NOT_READY@GOTPAGE
Lloh10:
	ldr	x27, [x27, _PAD_ERR_NOT_READY@GOTPAGEOFF]
Lloh11:
	adrp	x28, ___pad_enabledbits@GOTPAGE
Lloh12:
	ldr	x28, [x28, ___pad_enabledbits@GOTPAGEOFF]
Lloh13:
	adrp	x9, ___pad_checkingbits@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___pad_checkingbits@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x22, x9
	mov	x0, x21
	bl	_PAD_ENABLEDMASK
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #0
	bl	_PAD_Reset
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x23, x0
	ldr	w8, [x25]
	and	w8, w8, w0
	ldr	w9, [x26]
	cmp	w8, #0
	ccmp	x21, x9, #4, eq
	b.ne	LBB0_8
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	x8, [x27]
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	str	x8, [x20, #8]
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x9, x22
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	add	x21, x21, #1
	add	x20, x20, #16
	cmp	x21, #4
	b.ne	LBB0_1
	b	LBB0_23
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x28]
	tst	w8, w23
	b.eq	LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x21
	bl	_SI_IsChanBusy
	cbz	x0, LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh15:
	adrp	x8, _PAD_ERR_TRANSFER@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PAD_ERR_TRANSFER@GOTPAGEOFF]
	b	LBB0_15
LBB0_11:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x21
	bl	_SI_GetStatus
Lloh17:
	adrp	x8, _SI_ERROR_NO_RESPONSE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SI_ERROR_NO_RESPONSE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x1, sp
	mov	x0, x21
	bl	_SI_GetResponse
Lloh20:
	adrp	x8, ___pad_waitingbits@GOTPAGE
Lloh21:
	ldr	x8, [x8, ___pad_waitingbits@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_20
; %bb.13:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x21
	bl	___pad_disable
LBB0_14:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh23:
	adrp	x8, _PAD_ERR_NO_CONTROLLER@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PAD_ERR_NO_CONTROLLER@GOTPAGEOFF]
LBB0_15:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x8]
	b	LBB0_5
LBB0_16:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x21
	bl	_SI_GetType
Lloh25:
	adrp	x8, _SI_WIRELESS_STATE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SI_WIRELESS_STATE@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	tst	w8, w0
	csel	w8, w23, wzr, eq
	orr	w19, w8, w19
	mov	x1, sp
	mov	x0, x21
	bl	_SI_GetResponse
	cbz	w0, LBB0_10
; %bb.17:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [sp]
	tbnz	w8, #31, LBB0_10
; %bb.18:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x1, sp
	mov	x0, x21
	mov	x2, x20
	bl	___pad_makestatus
	ldr	w8, [x20]
	tbnz	w8, #13, LBB0_22
; %bb.19:                               ;   in Loop: Header=BB0_1 Depth=1
Lloh28:
	adrp	x9, _PAD_ERR_NONE@GOTPAGE
Lloh29:
	ldr	x9, [x9, _PAD_ERR_NONE@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	str	x9, [x20, #8]
	and	w8, w8, #0xffffff7f
	str	w8, [x20]
	b	LBB0_6
LBB0_20:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh31:
	adrp	x8, _PAD_ERR_NONE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _PAD_ERR_NONE@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	str	x8, [x20, #8]
	mov	x9, x22
	ldr	w8, [x22]
	tst	w8, w23
	b.ne	LBB0_7
; %bb.21:                               ;   in Loop: Header=BB0_1 Depth=1
	orr	w8, w8, w23
	str	w8, [x9]
Lloh34:
	adrp	x8, ___pad_receivecheckcallback@GOTPAGE
Lloh35:
	ldr	x8, [x8, ___pad_receivecheckcallback@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_SI_GetTypeAsync
	b	LBB0_6
LBB0_22:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh37:
	adrp	x8, _PAD_ERR_TRANSFER@GOTPAGE
Lloh38:
	ldr	x8, [x8, _PAD_ERR_TRANSFER@GOTPAGEOFF]
Lloh39:
	ldr	x8, [x8]
	str	x8, [x20, #8]
Lloh40:
	adrp	x8, ___pad_origin@GOTPAGE
Lloh41:
	ldr	x8, [x8, ___pad_origin@GOTPAGEOFF]
Lloh42:
	ldr	x8, [x8]
	ldr	w3, [x8, x21, lsl #2]
Lloh43:
	adrp	x8, ___pad_originupdatecallback@GOTPAGE
Lloh44:
	ldr	x8, [x8, ___pad_originupdatecallback@GOTPAGEOFF]
Lloh45:
	ldr	w5, [x8]
	mov	x0, x21
Lloh46:
	adrp	x1, ___pad_cmdreadorigin@GOTPAGE
Lloh47:
	ldr	x1, [x1, ___pad_cmdreadorigin@GOTPAGEOFF]
	mov	w2, #1
	mov	w4, #10
	mov	w6, #0
	bl	_SI_Transfer
	b	LBB0_6
LBB0_23:
	bl	__CPU_ISR_Restore
	ldr	x8, [sp, #8]
Lloh48:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh49:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh50:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.24:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_25:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	___pad_pendingbits,4,2          ; @__pad_pendingbits
	.comm	_PAD_ERR_NOT_READY,8,3          ; @PAD_ERR_NOT_READY
	.comm	___pad_resettingbits,4,2        ; @__pad_resettingbits
	.comm	___pad_resettingchan,4,2        ; @__pad_resettingchan
	.comm	___pad_enabledbits,4,2          ; @__pad_enabledbits
	.comm	_PAD_ERR_NO_CONTROLLER,8,3      ; @PAD_ERR_NO_CONTROLLER
	.comm	_PAD_ERR_TRANSFER,8,3           ; @PAD_ERR_TRANSFER
	.comm	_SI_ERROR_NO_RESPONSE,4,2       ; @SI_ERROR_NO_RESPONSE
	.comm	___pad_waitingbits,4,2          ; @__pad_waitingbits
	.comm	_PAD_ERR_NONE,8,3               ; @PAD_ERR_NONE
	.comm	___pad_checkingbits,4,2         ; @__pad_checkingbits
	.comm	___pad_receivecheckcallback,4,2 ; @__pad_receivecheckcallback
	.comm	_SI_WIRELESS_STATE,4,2          ; @SI_WIRELESS_STATE
	.comm	___pad_cmdreadorigin,4,2        ; @__pad_cmdreadorigin
	.comm	___pad_origin,8,3               ; @__pad_origin
	.comm	___pad_originupdatecallback,4,2 ; @__pad_originupdatecallback
.subsections_via_symbols
