	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function auo_pixcir_int_config
_auo_pixcir_int_config:                 ## @auo_pixcir_int_config
	.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	%esi, %r12d
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %r14
	movq	_AUO_PIXCIR_REG_INT_SETTING@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	movq	_AUO_PIXCIR_INT_MODE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
	orl	%r12d, %ebx
	movq	_AUO_PIXCIR_INT_POL_HIGH@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	(%r13), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_AUO_PIXCIR_INT_TOUCH_IND@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	movl	%edx, (%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_1:
	movl	(%r13), %edx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	movl	%eax, %ebx
	movl	(%r13), %edx
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movq	%r14, %rdi
	movl	%ebx, %ecx
	callq	_dev_err
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AUO_PIXCIR_REG_INT_SETTING,4,2 ## @AUO_PIXCIR_REG_INT_SETTING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to read reg %Xh, %d\n"

	.comm	_AUO_PIXCIR_INT_MODE_MASK,4,2   ## @AUO_PIXCIR_INT_MODE_MASK
	.comm	_AUO_PIXCIR_INT_POL_HIGH,4,2    ## @AUO_PIXCIR_INT_POL_HIGH
L_.str.1:                               ## @.str.1
	.asciz	"unable to write reg %Xh, %d\n"

	.comm	_AUO_PIXCIR_INT_TOUCH_IND,8,3   ## @AUO_PIXCIR_INT_TOUCH_IND
	.no_dead_strip	_auo_pixcir_int_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function auo_pixcir_int_config
_auo_pixcir_int_config:                 ; @auo_pixcir_int_config
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x1
	mov	x21, x0
	ldp	x24, x20, [x0, #8]
Lloh0:
	adrp	x23, _AUO_PIXCIR_REG_INT_SETTING@GOTPAGE
Lloh1:
	ldr	x23, [x23, _AUO_PIXCIR_REG_INT_SETTING@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_i2c_smbus_read_byte_data
	mov	x19, x0
	tbnz	w0, #31, LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _AUO_PIXCIR_INT_MODE_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AUO_PIXCIR_INT_MODE_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w8, w19, w8
	orr	w8, w8, w22
Lloh5:
	adrp	x9, _AUO_PIXCIR_INT_POL_HIGH@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AUO_PIXCIR_INT_POL_HIGH@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w2, w8, w9
	ldr	w1, [x23]
	mov	x0, x20
	bl	_i2c_smbus_write_byte_data
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	w19, #0
	ldr	x8, [x24]
Lloh8:
	adrp	x9, _AUO_PIXCIR_INT_TOUCH_IND@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AUO_PIXCIR_INT_TOUCH_IND@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, eq
	str	w8, [x21]
	b	LBB0_6
LBB0_3:
	ldr	w2, [x23]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
	mov	x19, x0
	ldr	w2, [x23]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	mov	x0, x20
	mov	x3, x19
	bl	_dev_err
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AUO_PIXCIR_REG_INT_SETTING,4,2 ; @AUO_PIXCIR_REG_INT_SETTING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to read reg %Xh, %d\n"

	.comm	_AUO_PIXCIR_INT_MODE_MASK,4,2   ; @AUO_PIXCIR_INT_MODE_MASK
	.comm	_AUO_PIXCIR_INT_POL_HIGH,4,2    ; @AUO_PIXCIR_INT_POL_HIGH
l_.str.1:                               ; @.str.1
	.asciz	"unable to write reg %Xh, %d\n"

	.comm	_AUO_PIXCIR_INT_TOUCH_IND,8,3   ; @AUO_PIXCIR_INT_TOUCH_IND
	.no_dead_strip	_auo_pixcir_int_config
.subsections_via_symbols
