	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ts5500_gpio_output
_ts5500_gpio_output:                    ## @ts5500_gpio_output
	.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
	movl	%edx, %r14d
	movl	%esi, %ebx
	callq	_gpiochip_get_data
	movq	%rax, %r15
	movq	8(%rax), %rax
	movl	%ebx, %ecx
	shlq	$5, %rcx
	cmpq	$0, 24(%rax,%rcx)
	je	LBB0_2
## %bb.1:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_2:
	movl	(%rax,%rcx), %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	4(%rax,%rcx), %r12d
	movl	8(%rax,%rcx), %edx
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	12(%rax,%rcx), %r13d
	movl	16(%rax,%rcx), %ebx
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	testl	%ebx, %ebx
	jne	LBB0_4
## %bb.3:
	movl	%r13d, %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_ts5500_set_mask
LBB0_4:
	movl	%r12d, %edi
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.5:
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_ts5500_set_mask
	jmp	LBB0_7
LBB0_6:
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_ts5500_clear_mask
LBB0_7:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_ts5500_gpio_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ts5500_gpio_output
_ts5500_gpio_output:                    ; @ts5500_gpio_output
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x21, x1
	bl	_gpiochip_get_data
	ldr	x8, [x0, #8]
	mov	w9, w21
	add	x8, x8, x9, lsl #5
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENXIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_2:
	mov	x19, x0
	ldp	w21, w22, [x8]
	ldp	w23, w24, [x8, #8]
	ldr	w25, [x8, #16]
	bl	_spin_lock_irqsave
	cbnz	w25, LBB0_4
; %bb.3:
	mov	x0, x24
	mov	x1, x23
	bl	_ts5500_set_mask
LBB0_4:
	mov	x0, x22
	mov	x1, x21
	cbz	w20, LBB0_6
; %bb.5:
	bl	_ts5500_set_mask
	b	LBB0_7
LBB0_6:
	bl	_ts5500_clear_mask
LBB0_7:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_ts5500_gpio_output
.subsections_via_symbols
