	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __pad_typeandstatuscallback
___pad_typeandstatuscallback:           ## @__pad_typeandstatuscallback
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	___pad_resettingchan@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_PAD_ENABLEDMASK
	movl	%eax, %r14d
	movq	___pad_recalibratebits@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	movl	%r14d, %edx
	notl	%edx
	andl	%eax, %edx
	movl	%edx, (%rcx)
	testb	$15, %bl
	jne	LBB0_19
## %bb.1:
	movl	%ebx, %ecx
	andl	$-256, %ecx
	movq	___pad_type@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%r15), %rdi
	movl	%ecx, (%rdx,%rdi,4)
	movq	_SI_TYPE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%ebx, %ecx
	movq	_SI_TYPE_GC@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_19
## %bb.2:
	movq	_SI_GC_STANDARD@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	je	LBB0_19
## %bb.3:
	movq	___pad_spec@GOTPCREL(%rip), %rcx
	cmpl	$1, (%rcx)
	jg	LBB0_5
## %bb.4:
	callq	___pad_enable
	jmp	LBB0_19
LBB0_5:
	movq	_SI_GC_WIRELESS@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	_SI_WIRELESS_IR@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	je	LBB0_9
LBB0_7:
	movq	___pad_origin@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rdi,4), %ecx
	movq	___pad_origincallback@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	testl	%r14d, %eax
	je	LBB0_14
## %bb.8:
	movl	$0, (%rsp)
	movq	___pad_cmdcalibrate@GOTPCREL(%rip), %rsi
	movl	$3, %edx
	jmp	LBB0_15
LBB0_9:
	movq	_SI_WIRELESS_FIX_ID@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_18
## %bb.10:
	movq	_SI_WIRELESS_CONT_MASK@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_18
## %bb.11:
	movq	_SI_WIRELESS_LITE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_18
## %bb.12:
	movq	_SI_WIRELESS_RECEIVED@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_20
## %bb.13:
	movq	___pad_origin@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rdi,4), %ecx
	movq	___pad_origincallback@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
LBB0_14:
	movl	$0, (%rsp)
	movq	___pad_cmdreadorigin@GOTPCREL(%rip), %rsi
	movl	$1, %edx
LBB0_15:
	movl	$10, %r8d
LBB0_16:
	callq	_SI_Transfer
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	___pad_pendingbits@GOTPCREL(%rip), %rax
	orl	%r14d, (%rax)
LBB0_19:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___pad_doreset                  ## TAILCALL
LBB0_20:
	movq	___pad_cmdprobedevice@GOTPCREL(%rip), %rax
	leaq	(,%rdi,4), %rsi
	addq	(%rax), %rsi
	movq	___pad_origin@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rdi,4), %ecx
	movq	___pad_probecallback@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	$0, (%rsp)
	movl	$3, %edx
	movl	$8, %r8d
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	___pad_resettingchan,8,3        ## @__pad_resettingchan
	.comm	___pad_recalibratebits,4,2      ## @__pad_recalibratebits
	.comm	___pad_type,8,3                 ## @__pad_type
	.comm	_SI_TYPE_MASK,4,2               ## @SI_TYPE_MASK
	.comm	_SI_TYPE_GC,4,2                 ## @SI_TYPE_GC
	.comm	_SI_GC_STANDARD,4,2             ## @SI_GC_STANDARD
	.comm	___pad_spec,4,2                 ## @__pad_spec
	.comm	_SI_GC_WIRELESS,4,2             ## @SI_GC_WIRELESS
	.comm	_SI_WIRELESS_IR,4,2             ## @SI_WIRELESS_IR
	.comm	___pad_cmdcalibrate,4,2         ## @__pad_cmdcalibrate
	.comm	___pad_origin,8,3               ## @__pad_origin
	.comm	___pad_origincallback,4,2       ## @__pad_origincallback
	.comm	___pad_cmdreadorigin,4,2        ## @__pad_cmdreadorigin
	.comm	_SI_WIRELESS_FIX_ID,4,2         ## @SI_WIRELESS_FIX_ID
	.comm	_SI_WIRELESS_CONT_MASK,4,2      ## @SI_WIRELESS_CONT_MASK
	.comm	_SI_WIRELESS_LITE,4,2           ## @SI_WIRELESS_LITE
	.comm	_SI_WIRELESS_RECEIVED,4,2       ## @SI_WIRELESS_RECEIVED
	.comm	___pad_cmdprobedevice,8,3       ## @__pad_cmdprobedevice
	.comm	___pad_probecallback,4,2        ## @__pad_probecallback
	.comm	___pad_pendingbits,4,2          ## @__pad_pendingbits
	.no_dead_strip	___pad_typeandstatuscallback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __pad_typeandstatuscallback
___pad_typeandstatuscallback:           ; @__pad_typeandstatuscallback
	.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	x20, x1
Lloh0:
	adrp	x21, ___pad_resettingchan@GOTPAGE
Lloh1:
	ldr	x21, [x21, ___pad_resettingchan@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_PAD_ENABLEDMASK
Lloh2:
	adrp	x9, ___pad_recalibratebits@GOTPAGE
Lloh3:
	ldr	x9, [x9, ___pad_recalibratebits@GOTPAGEOFF]
	ldr	w8, [x9]
	bic	w10, w8, w0
	str	w10, [x9]
	tst	w20, #0xf
	b.ne	LBB0_19
; %bb.1:
	mov	x19, x0
	and	w9, w20, #0xffffff00
Lloh4:
	adrp	x10, ___pad_type@GOTPAGE
Lloh5:
	ldr	x10, [x10, ___pad_type@GOTPAGEOFF]
Lloh6:
	ldr	x10, [x10]
	ldr	x0, [x21]
	str	w9, [x10, x0, lsl #2]
Lloh7:
	adrp	x9, _SI_TYPE_MASK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SI_TYPE_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	and	w9, w9, w20
Lloh10:
	adrp	x10, _SI_TYPE_GC@GOTPAGE
Lloh11:
	ldr	x10, [x10, _SI_TYPE_GC@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_19
; %bb.2:
Lloh13:
	adrp	x9, _SI_GC_STANDARD@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SI_GC_STANDARD@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w20
	b.eq	LBB0_19
; %bb.3:
Lloh16:
	adrp	x9, ___pad_spec@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___pad_spec@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	cmp	w9, #1
	b.gt	LBB0_5
; %bb.4:
	bl	___pad_enable
	b	LBB0_19
LBB0_5:
Lloh19:
	adrp	x9, _SI_GC_WIRELESS@GOTPAGE
Lloh20:
	ldr	x9, [x9, _SI_GC_WIRELESS@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w20
	b.eq	LBB0_7
; %bb.6:
Lloh22:
	adrp	x9, _SI_WIRELESS_IR@GOTPAGE
Lloh23:
	ldr	x9, [x9, _SI_WIRELESS_IR@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w9, w20
	b.eq	LBB0_9
LBB0_7:
Lloh25:
	adrp	x9, ___pad_origin@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___pad_origin@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	ldr	w3, [x9, x0, lsl #2]
Lloh28:
	adrp	x9, ___pad_origincallback@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___pad_origincallback@GOTPAGEOFF]
Lloh30:
	ldr	w5, [x9]
	and	w8, w8, w19
	cbz	w8, LBB0_14
; %bb.8:
Lloh31:
	adrp	x1, ___pad_cmdcalibrate@GOTPAGE
Lloh32:
	ldr	x1, [x1, ___pad_cmdcalibrate@GOTPAGEOFF]
	mov	w2, #3
	b	LBB0_15
LBB0_9:
Lloh33:
	adrp	x8, _SI_WIRELESS_FIX_ID@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SI_WIRELESS_FIX_ID@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_18
; %bb.10:
Lloh36:
	adrp	x8, _SI_WIRELESS_CONT_MASK@GOTPAGE
Lloh37:
	ldr	x8, [x8, _SI_WIRELESS_CONT_MASK@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	tst	w8, w20
	b.ne	LBB0_18
; %bb.11:
Lloh39:
	adrp	x8, _SI_WIRELESS_LITE@GOTPAGE
Lloh40:
	ldr	x8, [x8, _SI_WIRELESS_LITE@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	tst	w8, w20
	b.ne	LBB0_18
; %bb.12:
Lloh42:
	adrp	x8, _SI_WIRELESS_RECEIVED@GOTPAGE
Lloh43:
	ldr	x8, [x8, _SI_WIRELESS_RECEIVED@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_20
; %bb.13:
Lloh45:
	adrp	x8, ___pad_origin@GOTPAGE
Lloh46:
	ldr	x8, [x8, ___pad_origin@GOTPAGEOFF]
Lloh47:
	ldr	x8, [x8]
	ldr	w3, [x8, x0, lsl #2]
Lloh48:
	adrp	x8, ___pad_origincallback@GOTPAGE
Lloh49:
	ldr	x8, [x8, ___pad_origincallback@GOTPAGEOFF]
Lloh50:
	ldr	w5, [x8]
LBB0_14:
Lloh51:
	adrp	x1, ___pad_cmdreadorigin@GOTPAGE
Lloh52:
	ldr	x1, [x1, ___pad_cmdreadorigin@GOTPAGEOFF]
	mov	w2, #1
LBB0_15:
	mov	w4, #10
LBB0_16:
	mov	w6, #0
	bl	_SI_Transfer
	cbz	w0, LBB0_18
; %bb.17:
	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
LBB0_18:
Lloh53:
	adrp	x8, ___pad_pendingbits@GOTPAGE
Lloh54:
	ldr	x8, [x8, ___pad_pendingbits@GOTPAGEOFF]
	ldr	w9, [x8]
	orr	w9, w9, w19
	str	w9, [x8]
LBB0_19:
	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
	b	___pad_doreset
LBB0_20:
Lloh55:
	adrp	x8, ___pad_cmdprobedevice@GOTPAGE
Lloh56:
	ldr	x8, [x8, ___pad_cmdprobedevice@GOTPAGEOFF]
Lloh57:
	ldr	x8, [x8]
	lsl	x9, x0, #2
	add	x1, x8, x9
Lloh58:
	adrp	x8, ___pad_origin@GOTPAGE
Lloh59:
	ldr	x8, [x8, ___pad_origin@GOTPAGEOFF]
Lloh60:
	ldr	x8, [x8]
	ldr	w3, [x8, x9]
Lloh61:
	adrp	x8, ___pad_probecallback@GOTPAGE
Lloh62:
	ldr	x8, [x8, ___pad_probecallback@GOTPAGEOFF]
Lloh63:
	ldr	w5, [x8]
	mov	w2, #3
	mov	w4, #8
	b	LBB0_16
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.comm	___pad_resettingchan,8,3        ; @__pad_resettingchan
	.comm	___pad_recalibratebits,4,2      ; @__pad_recalibratebits
	.comm	___pad_type,8,3                 ; @__pad_type
	.comm	_SI_TYPE_MASK,4,2               ; @SI_TYPE_MASK
	.comm	_SI_TYPE_GC,4,2                 ; @SI_TYPE_GC
	.comm	_SI_GC_STANDARD,4,2             ; @SI_GC_STANDARD
	.comm	___pad_spec,4,2                 ; @__pad_spec
	.comm	_SI_GC_WIRELESS,4,2             ; @SI_GC_WIRELESS
	.comm	_SI_WIRELESS_IR,4,2             ; @SI_WIRELESS_IR
	.comm	___pad_cmdcalibrate,4,2         ; @__pad_cmdcalibrate
	.comm	___pad_origin,8,3               ; @__pad_origin
	.comm	___pad_origincallback,4,2       ; @__pad_origincallback
	.comm	___pad_cmdreadorigin,4,2        ; @__pad_cmdreadorigin
	.comm	_SI_WIRELESS_FIX_ID,4,2         ; @SI_WIRELESS_FIX_ID
	.comm	_SI_WIRELESS_CONT_MASK,4,2      ; @SI_WIRELESS_CONT_MASK
	.comm	_SI_WIRELESS_LITE,4,2           ; @SI_WIRELESS_LITE
	.comm	_SI_WIRELESS_RECEIVED,4,2       ; @SI_WIRELESS_RECEIVED
	.comm	___pad_cmdprobedevice,8,3       ; @__pad_cmdprobedevice
	.comm	___pad_probecallback,4,2        ; @__pad_probecallback
	.comm	___pad_pendingbits,4,2          ; @__pad_pendingbits
	.no_dead_strip	___pad_typeandstatuscallback
.subsections_via_symbols
