	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elantech_set_int_attr
_elantech_set_int_attr:                 ## @elantech_set_int_attr
	.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
	movq	%rcx, %r14
	movq	%rdx, %rax
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rdi), %r12
	movslq	(%rsi), %r13
	leaq	-41(%rbp), %rdx
	movq	%rax, %rdi
	movl	$16, %esi
	callq	_kstrtou8
	testl	%eax, %eax
	jne	LBB0_11
## %bb.1:
	cmpl	$1, (%r12)
	movl	4(%rbx), %esi
	jne	LBB0_7
## %bb.2:
	testl	%esi, %esi
	je	LBB0_9
## %bb.3:
	cmpl	$17, %esi
	je	LBB0_6
## %bb.4:
	cmpl	$16, %esi
	jne	LBB0_8
## %bb.5:
	movq	_ETP_R10_ABSOLUTE_MODE@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	orb	%al, -41(%rbp)
	movl	$16, %esi
	jmp	LBB0_8
LBB0_7:
	testl	%esi, %esi
	jne	LBB0_8
	jmp	LBB0_9
LBB0_6:
	movq	_ETP_R11_4_BYTE_MODE@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	orb	%al, -41(%rbp)
	movl	$17, %esi
LBB0_8:
	movzbl	-41(%rbp), %edx
	movq	%r15, %rdi
	callq	_elantech_write_reg
	testq	%rax, %rax
	jne	LBB0_10
LBB0_9:
	movb	-41(%rbp), %al
	movb	%al, (%r12,%r13)
LBB0_10:
	movl	%r14d, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETP_R10_ABSOLUTE_MODE,1,0      ## @ETP_R10_ABSOLUTE_MODE
	.comm	_ETP_R11_4_BYTE_MODE,1,0        ## @ETP_R11_4_BYTE_MODE
	.no_dead_strip	_elantech_set_int_attr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elantech_set_int_attr
_elantech_set_int_attr:                 ; @elantech_set_int_attr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x3
	mov	x8, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x22, [x0]
	ldrsw	x23, [x1]
	add	x2, sp, #15
	mov	x0, x8
	mov	w1, #16
	bl	_kstrtou8
	cbnz	w0, LBB0_12
; %bb.1:
	ldr	w8, [x22]
	ldr	w1, [x21, #4]
	cmp	w8, #1
	b.ne	LBB0_6
; %bb.2:
	cbz	w1, LBB0_10
; %bb.3:
	cmp	w1, #17
	b.eq	LBB0_7
; %bb.4:
	cmp	w1, #16
	b.ne	LBB0_9
; %bb.5:
Lloh0:
	adrp	x8, _ETP_R10_ABSOLUTE_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETP_R10_ABSOLUTE_MODE@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	cbnz	w1, LBB0_9
	b	LBB0_10
LBB0_7:
Lloh2:
	adrp	x8, _ETP_R11_4_BYTE_MODE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ETP_R11_4_BYTE_MODE@GOTPAGEOFF]
LBB0_8:
	ldrb	w8, [x8]
	ldrb	w9, [sp, #15]
	orr	w8, w9, w8
	strb	w8, [sp, #15]
LBB0_9:
	ldrb	w2, [sp, #15]
	mov	x0, x20
	bl	_elantech_write_reg
	cbnz	x0, LBB0_11
LBB0_10:
	ldrb	w8, [sp, #15]
	strb	w8, [x22, x23]
LBB0_11:
	mov	x0, x19
LBB0_12:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ETP_R10_ABSOLUTE_MODE,1,0      ; @ETP_R10_ABSOLUTE_MODE
	.comm	_ETP_R11_4_BYTE_MODE,1,0        ; @ETP_R11_4_BYTE_MODE
	.no_dead_strip	_elantech_set_int_attr
.subsections_via_symbols
