	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pixcir_start
_pixcir_start:                          ## @pixcir_start
	.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
	movq	%rdi, %r12
	movq	8(%rdi), %rdi
	movq	16(%r12), %r14
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movl	$1, %esi
	callq	_gpiod_set_value_cansleep
	movl	$100, %edi
	callq	_msleep
LBB0_2:
	movq	_PIXCIR_INT_LEVEL_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_pixcir_set_int_mode
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_6
LBB0_4:
	movl	$1, (%r12)
	xorl	%eax, %eax
	callq	_mb
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_pixcir_int_enable
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
LBB0_6:
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_err
	movl	%ebx, %r15d
LBB0_7:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PIXCIR_INT_LEVEL_TOUCH,4,2     ## @PIXCIR_INT_LEVEL_TOUCH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to set interrupt mode: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to enable interrupt generation: %d\n"

	.no_dead_strip	_pixcir_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pixcir_start
_pixcir_start:                          ; @pixcir_start
	.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, x0
	ldp	x0, x19, [x0, #8]
	cbz	x0, LBB0_2
; %bb.1:
	mov	w1, #1
	bl	_gpiod_set_value_cansleep
	mov	w0, #100
	bl	_msleep
LBB0_2:
Lloh0:
	adrp	x8, _PIXCIR_INT_LEVEL_TOUCH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PIXCIR_INT_LEVEL_TOUCH@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_pixcir_set_int_mode
	cbz	w0, LBB0_4
; %bb.3:
	mov	x21, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_4:
	mov	w8, #1
	str	w8, [x20]
	bl	_mb
	mov	x0, x20
	mov	w1, #1
	bl	_pixcir_int_enable
	mov	x21, x0
	cbz	w0, LBB0_7
; %bb.5:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
LBB0_7:
	mov	x0, x21
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PIXCIR_INT_LEVEL_TOUCH,4,2     ; @PIXCIR_INT_LEVEL_TOUCH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to set interrupt mode: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to enable interrupt generation: %d\n"

	.no_dead_strip	_pixcir_start
.subsections_via_symbols
