	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ts5500_gpio_input
_ts5500_gpio_input:                     ## @ts5500_gpio_input
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	callq	_gpiochip_get_data
	movq	%rax, %r14
	movq	8(%rax), %rax
	movl	%ebx, %ecx
	leaq	(%rcx,%rcx,2), %rcx
	cmpq	$0, 16(%rax,%rcx,8)
	je	LBB0_2
## %bb.1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_4
LBB0_2:
	xorl	%ebx, %ebx
	cmpq	$0, 8(%rax,%rcx,8)
	jne	LBB0_4
## %bb.3:
	movl	(%rax,%rcx,8), %r15d
	movl	4(%rax,%rcx,8), %r12d
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	%r12d, %edi
	movl	%r15d, %esi
	callq	_ts5500_clear_mask
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_ts5500_gpio_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ts5500_gpio_input
_ts5500_gpio_input:                     ; @ts5500_gpio_input
	.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
	bl	_gpiochip_get_data
	ldr	x9, [x0, #8]
	mov	w8, #24
	umaddl	x8, w20, w8, x9
	ldr	x10, [x8, #16]
	cbz	x10, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENXIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_2:
	mov	w10, w20
	mov	w11, #24
	madd	x9, x10, x11, x9
	ldr	x9, [x9, #8]
	cbnz	x9, LBB0_4
; %bb.3:
	mov	x19, x0
	ldp	w20, w21, [x8]
	bl	_spin_lock_irqsave
	mov	x0, x21
	mov	x1, x20
	bl	_ts5500_clear_mask
	mov	x0, x19
	bl	_spin_unlock_irqrestore
LBB0_4:
	mov	w0, #0
LBB0_5:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_ts5500_gpio_input
.subsections_via_symbols
