	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elan_smbus_get_report
_elan_smbus_get_report:                 ## @elan_smbus_get_report
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	_I2C_SMBUS_BLOCK_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_ETP_SMBUS_REPORT_LEN@GOTPCREL(%rip), %r15
	xorl	%edi, %edi
	cmpl	(%r15), %eax
	setg	%dil
	callq	_BUILD_BUG_ON
	movq	_ETP_SMBUS_PACKET_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ETP_SMBUS_REPORT_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rbx,%rax,4), %rdx
	movq	%r14, %rdi
	callq	_i2c_smbus_read_block_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	(%r15), %ecx
	xorl	%r15d, %r15d
	cmpl	%ecx, %ebx
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%ebx, %r15d
LBB0_4:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_SMBUS_BLOCK_MAX,4,2        ## @I2C_SMBUS_BLOCK_MAX
	.comm	_ETP_SMBUS_REPORT_LEN,4,2       ## @ETP_SMBUS_REPORT_LEN
	.comm	_ETP_SMBUS_PACKET_QUERY,4,2     ## @ETP_SMBUS_PACKET_QUERY
	.comm	_ETP_SMBUS_REPORT_OFFSET,8,3    ## @ETP_SMBUS_REPORT_OFFSET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to read report data: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"wrong report length (%d vs %d expected)\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_elan_smbus_get_report
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elan_smbus_get_report
_elan_smbus_get_report:                 ; @elan_smbus_get_report
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _I2C_SMBUS_BLOCK_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_SMBUS_BLOCK_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x21, _ETP_SMBUS_REPORT_LEN@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ETP_SMBUS_REPORT_LEN@GOTPAGEOFF]
	ldr	w9, [x21]
	cmp	w8, w9
	cset	w0, gt
	bl	_BUILD_BUG_ON
Lloh5:
	adrp	x8, _ETP_SMBUS_PACKET_QUERY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ETP_SMBUS_PACKET_QUERY@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _ETP_SMBUS_REPORT_OFFSET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ETP_SMBUS_REPORT_OFFSET@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	add	x2, x20, x8, lsl #2
	mov	x0, x19
	bl	_i2c_smbus_read_block_data
	mov	x20, x0
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	w8, [x21]
	cmp	w20, w8
	b.ne	LBB0_4
; %bb.2:
	mov	w20, #0
	b	LBB0_5
LBB0_3:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
	b	LBB0_5
LBB0_4:
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
Lloh15:
	adrp	x8, _EIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_5:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_SMBUS_BLOCK_MAX,4,2        ; @I2C_SMBUS_BLOCK_MAX
	.comm	_ETP_SMBUS_REPORT_LEN,4,2       ; @ETP_SMBUS_REPORT_LEN
	.comm	_ETP_SMBUS_PACKET_QUERY,4,2     ; @ETP_SMBUS_PACKET_QUERY
	.comm	_ETP_SMBUS_REPORT_OFFSET,8,3    ; @ETP_SMBUS_REPORT_OFFSET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to read report data: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"wrong report length (%d vs %d expected)\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_elan_smbus_get_report
.subsections_via_symbols
