	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function silead_ts_load_fw
_silead_ts_load_fw:                     ## @silead_ts_load_fw
	.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	%rdi, %r15
	callq	_i2c_get_clientdata
	movq	%rax, %rbx
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_dbg
	movl	(%rbx), %esi
	leaq	-48(%rbp), %rdi
	movq	%r15, %rdx
	callq	_request_firmware
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_8
LBB0_2:
	movq	-48(%rbp), %rcx
	movl	(%rcx), %eax
	xorl	%r14d, %r14d
	cmpl	$8, %eax
	jb	LBB0_7
## %bb.3:
	movq	8(%rcx), %rbx
	sarl	$3, %eax
	cmpl	$2, %eax
	movl	$1, %r13d
	cmovael	%eax, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rbx), %esi
	movq	%r15, %rdi
	movl	$4, %edx
	movq	%rbx, %rcx
	callq	_i2c_smbus_write_i2c_block_data
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	$8, %rbx
	decq	%r13
	jne	LBB0_5
	jmp	LBB0_7
LBB0_6:
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movl	%r12d, %r14d
LBB0_7:
	movq	-48(%rbp), %rdi
	callq	_release_firmware
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Firmware file name: %s"

L_.str.1:                               ## @.str.1
	.asciz	"Firmware request error %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Firmware load error %d\n"

	.no_dead_strip	_silead_ts_load_fw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function silead_ts_load_fw
_silead_ts_load_fw:                     ; @silead_ts_load_fw
	.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	x19, x0
	bl	_i2c_get_clientdata
	mov	x20, x0
	ldr	w2, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	w1, [x20]
	add	x0, sp, #8
	mov	x2, x19
	bl	_request_firmware
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
	b	LBB0_9
LBB0_2:
	ldr	x9, [sp, #8]
	ldr	w8, [x9]
	cmp	w8, #8
	b.lo	LBB0_6
; %bb.3:
	ldr	x21, [x9, #8]
	asr	w8, w8, #3
	cmp	w8, #1
	csinc	w22, w8, wzr, hi
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21, #4]
	mov	x0, x19
	mov	w2, #4
	mov	x3, x21
	bl	_i2c_smbus_write_i2c_block_data
	cbnz	w0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #8
	subs	x22, x22, #1
	b.ne	LBB0_4
LBB0_6:
	mov	w20, #0
	b	LBB0_8
LBB0_7:
	mov	x20, x0
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
LBB0_8:
	ldr	x0, [sp, #8]
	bl	_release_firmware
LBB0_9:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Firmware file name: %s"

l_.str.1:                               ; @.str.1
	.asciz	"Firmware request error %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Firmware load error %d\n"

	.no_dead_strip	_silead_ts_load_fw
.subsections_via_symbols
