	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function auo_pixcir_start
_auo_pixcir_start:                      ## @auo_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movq	_AUO_PIXCIR_POWER_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_auo_pixcir_power_mode
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	$0, (%rbx)
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_mb
	movl	(%r14), %edi
	callq	_enable_irq
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_auo_pixcir_int_toggle
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	4(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	movl	(%r14), %edi
	callq	_disable_irq
	movl	%ebx, %r15d
	jmp	LBB0_4
LBB0_1:
	movl	%eax, %r15d
	addq	$4, %r14
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
LBB0_4:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AUO_PIXCIR_POWER_ACTIVE,4,2    ## @AUO_PIXCIR_POWER_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not set power mode, %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"could not enable interrupt, %d\n"

	.no_dead_strip	_auo_pixcir_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function auo_pixcir_start
_auo_pixcir_start:                      ; @auo_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	x19, x0
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x8, _AUO_PIXCIR_POWER_ACTIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AUO_PIXCIR_POWER_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_auo_pixcir_power_mode
	tbnz	w0, #31, LBB0_3
; %bb.1:
	str	wzr, [x19]
	bl	_mb
	ldr	w0, [x21]
	bl	_enable_irq
	mov	x0, x19
	mov	w1, #1
	bl	_auo_pixcir_int_toggle
	mov	w20, #0
	tbz	w0, #31, LBB0_4
; %bb.2:
	mov	x19, x0
	add	x0, x21, #4
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_dev_err
	ldr	w0, [x21]
	bl	_disable_irq
	mov	x20, x19
	b	LBB0_4
LBB0_3:
	mov	x20, x0
	add	x0, x21, #4
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
LBB0_4:
	mov	x0, x20
	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	_AUO_PIXCIR_POWER_ACTIVE,4,2    ; @AUO_PIXCIR_POWER_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not set power mode, %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"could not enable interrupt, %d\n"

	.no_dead_strip	_auo_pixcir_start
.subsections_via_symbols
