	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PAD_Reset                      ## -- Begin function PAD_Reset
	.p2align	4, 0x90
_PAD_Reset:                             ## @PAD_Reset
	.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	%edi, %ebx
	callq	__CPU_ISR_Disable
	movq	___pad_pendingbits@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movq	___pad_waitingbits@GOTPCREL(%rip), %rdx
	movq	___pad_checkingbits@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rdx), %eax
	movl	$0, (%rcx)
	notl	%eax
	andl	%ebx, %eax
	movq	___pad_resettingbits@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	%eax, %edi
	movl	%edi, (%rcx)
	movq	___pad_enabledbits@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%edx, %edi
	movl	%eax, %esi
	notl	%esi
	andl	%edx, %esi
	movl	%esi, (%rcx)
	movq	___pad_spec@GOTPCREL(%rip), %rcx
	cmpl	$4, (%rcx)
	jne	LBB0_2
## %bb.1:
	movq	___pad_recalibratebits@GOTPCREL(%rip), %rcx
	orl	%eax, (%rcx)
LBB0_2:
	callq	_SI_DisablePolling
	movq	___pad_resettingchan@GOTPCREL(%rip), %rax
	cmpl	$32, (%rax)
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	___pad_doreset
LBB0_4:
	callq	__CPU_ISR_Restore
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___pad_pendingbits,4,2          ## @__pad_pendingbits
	.comm	___pad_waitingbits,4,2          ## @__pad_waitingbits
	.comm	___pad_checkingbits,4,2         ## @__pad_checkingbits
	.comm	___pad_resettingbits,4,2        ## @__pad_resettingbits
	.comm	___pad_enabledbits,4,2          ## @__pad_enabledbits
	.comm	___pad_spec,4,2                 ## @__pad_spec
	.comm	___pad_recalibratebits,4,2      ## @__pad_recalibratebits
	.comm	___pad_resettingchan,4,2        ## @__pad_resettingchan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PAD_Reset                      ; -- Begin function PAD_Reset
	.p2align	2
_PAD_Reset:                             ; @PAD_Reset
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	__CPU_ISR_Disable
Lloh0:
	adrp	x8, ___pad_pendingbits@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___pad_pendingbits@GOTPAGEOFF]
	ldr	w9, [x8]
	orr	w9, w9, w19
	str	wzr, [x8]
Lloh2:
	adrp	x8, ___pad_waitingbits@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___pad_waitingbits@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x10, ___pad_checkingbits@GOTPAGE
Lloh6:
	ldr	x10, [x10, ___pad_checkingbits@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	orr	w8, w10, w8
	bic	w8, w9, w8
Lloh8:
	adrp	x9, ___pad_resettingbits@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___pad_resettingbits@GOTPAGEOFF]
	ldr	w10, [x9]
	orr	w10, w8, w10
	str	w10, [x9]
Lloh10:
	adrp	x9, ___pad_enabledbits@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___pad_enabledbits@GOTPAGEOFF]
	ldr	w11, [x9]
	and	w0, w10, w11
	bic	w10, w11, w8
	str	w10, [x9]
Lloh12:
	adrp	x9, ___pad_spec@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___pad_spec@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w9, #4
	b.ne	LBB0_2
; %bb.1:
Lloh15:
	adrp	x9, ___pad_recalibratebits@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___pad_recalibratebits@GOTPAGEOFF]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
LBB0_2:
	bl	_SI_DisablePolling
Lloh17:
	adrp	x8, ___pad_resettingchan@GOTPAGE
Lloh18:
	ldr	x8, [x8, ___pad_resettingchan@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w8, #32
	b.ne	LBB0_4
; %bb.3:
	bl	___pad_doreset
LBB0_4:
	bl	__CPU_ISR_Restore
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	___pad_pendingbits,4,2          ; @__pad_pendingbits
	.comm	___pad_waitingbits,4,2          ; @__pad_waitingbits
	.comm	___pad_checkingbits,4,2         ; @__pad_checkingbits
	.comm	___pad_resettingbits,4,2        ; @__pad_resettingbits
	.comm	___pad_enabledbits,4,2          ; @__pad_enabledbits
	.comm	___pad_spec,4,2                 ; @__pad_spec
	.comm	___pad_recalibratebits,4,2      ; @__pad_recalibratebits
	.comm	___pad_resettingchan,4,2        ; @__pad_resettingchan
.subsections_via_symbols
