	.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	-48(%rbp), %rdx
	movq	%rax, %rdi
	movl	$16, %esi
	callq	_strict_strtoul
	testl	%eax, %eax
	jne	LBB0_14
## %bb.1:
	movq	-48(%rbp), %rdx
	cmpq	$256, %rdx                      ## imm = 0x100
	jb	LBB0_3
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
LBB0_3:
	cmpl	$1, (%r12)
	movl	4(%rbx), %esi
	jne	LBB0_9
## %bb.4:
	testl	%esi, %esi
	je	LBB0_12
## %bb.5:
	cmpl	$17, %esi
	je	LBB0_8
## %bb.6:
	cmpl	$16, %esi
	jne	LBB0_10
## %bb.7:
	movq	_ETP_R10_ABSOLUTE_MODE@GOTPCREL(%rip), %rax
	orq	(%rax), %rdx
	movq	%rdx, -48(%rbp)
	movl	$16, %esi
	jmp	LBB0_10
LBB0_9:
	testl	%esi, %esi
	jne	LBB0_10
	jmp	LBB0_12
LBB0_8:
	movq	_ETP_R11_4_BYTE_MODE@GOTPCREL(%rip), %rax
	orq	(%rax), %rdx
	movq	%rdx, -48(%rbp)
	movl	$17, %esi
LBB0_10:
	movq	%r15, %rdi
	callq	_elantech_write_reg
	testq	%rax, %rax
	jne	LBB0_13
## %bb.11:
	movq	-48(%rbp), %rdx
LBB0_12:
	movb	%dl, (%r12,%r13)
LBB0_13:
	movl	%r14d, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ETP_R10_ABSOLUTE_MODE,8,3      ## @ETP_R10_ABSOLUTE_MODE
	.comm	_ETP_R11_4_BYTE_MODE,8,3        ## @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, #8
	mov	x0, x8
	mov	w1, #16
	bl	_strict_strtoul
	cbnz	w0, LBB0_15
; %bb.1:
	ldr	x2, [sp, #8]
	cmp	x2, #256
	b.lo	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_3:
	ldr	w8, [x22]
	ldr	w1, [x21, #4]
	cmp	w8, #1
	b.ne	LBB0_8
; %bb.4:
	cbz	w1, LBB0_13
; %bb.5:
	cmp	w1, #17
	b.eq	LBB0_9
; %bb.6:
	cmp	w1, #16
	b.ne	LBB0_11
; %bb.7:
Lloh3:
	adrp	x8, _ETP_R10_ABSOLUTE_MODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETP_R10_ABSOLUTE_MODE@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
	cbnz	w1, LBB0_11
	b	LBB0_13
LBB0_9:
Lloh5:
	adrp	x8, _ETP_R11_4_BYTE_MODE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ETP_R11_4_BYTE_MODE@GOTPAGEOFF]
LBB0_10:
	ldr	x8, [x8]
	orr	x2, x8, x2
	str	x2, [sp, #8]
LBB0_11:
	mov	x0, x20
	bl	_elantech_write_reg
	cbnz	x0, LBB0_14
; %bb.12:
	ldr	x2, [sp, #8]
LBB0_13:
	strb	w2, [x22, x23]
LBB0_14:
	mov	x0, x19
LBB0_15:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ETP_R10_ABSOLUTE_MODE,8,3      ; @ETP_R10_ABSOLUTE_MODE
	.comm	_ETP_R11_4_BYTE_MODE,8,3        ; @ETP_R11_4_BYTE_MODE
	.no_dead_strip	_elantech_set_int_attr
.subsections_via_symbols
