	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stb6100_write_reg_range
_stb6100_write_reg_range:               ## @stb6100_write_reg_range
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leal	1(%r15), %ebx
	leaq	(,%rbx,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%r14, -104(%rbp)
	movl	%ebx, -96(%rbp)
	movl	$0, -92(%rbp)
	testl	%r12d, %r12d
	setle	%al
	leal	(%r15,%r12), %ecx
	movq	_STB6100_NUMREGS@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	movq	(%r13), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -88(%rbp)
	setg	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_verbose@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_FE_ERROR@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	leaq	L_.str(%rip), %rcx
	xorl	%ebx, %ebx
	movl	$1, %edx
	movl	%r12d, %r8d
	movl	%r15d, %r9d
	xorl	%eax, %eax
	callq	_dprintk
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_2:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	addq	$4, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	%r15d, %edx
	callq	_memcpy
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	%r12d, (%r14)
	movq	_verbose@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_FE_DEBUG@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	_verbose@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_FE_DEBUG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %r8d
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rcx
	movl	$1, %edx
	movq	-56(%rbp), %r9                  ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	xorl	%eax, %eax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	pushq	%rbx
	callq	_dprintk
	addq	$16, %rsp
	testl	%ebx, %ebx
	jle	LBB0_6
## %bb.4:
	movslq	-56(%rbp), %r12                 ## 4-byte Folded Reload
	movl	-64(%rbp), %r15d                ## 4-byte Reload
	shlq	$2, %r12
	movq	_stb6100_regnames@GOTPCREL(%rip), %r14
	leaq	L_.str.2(%rip), %rbx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	_verbose@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_FE_DEBUG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	(%r14), %rax
	addq	%r12, %rax
	movl	(%rax,%r13,4), %r8d
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r13,4), %r9d
	movl	$1, %edx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_dprintk
	incq	%r13
	cmpq	%r13, %r15
	jne	LBB0_5
LBB0_6:
	movq	_verbose@GOTPCREL(%rip), %r14
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	8(%rbx), %edi
	leaq	-104(%rbp), %rsi
	movl	$1, %edx
	callq	_i2c_transfer
	movl	%eax, %r13d
	xorl	%edi, %edi
	cmpl	$1, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	(%r14), %rdi
	movq	_FE_ERROR@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	movq	(%rbx), %rax
	movl	(%rax), %r8d
	leaq	L_.str.3(%rip), %rcx
	xorl	%ebx, %ebx
	movl	$1, %edx
	movq	-56(%rbp), %r9                  ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	xorl	%eax, %eax
	pushq	%r13
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	callq	_dprintk
	addq	$16, %rsp
	movq	_EREMOTEIO@GOTPCREL(%rip), %rax
LBB0_9:
	subl	(%rax), %ebx
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_STB6100_NUMREGS,4,2            ## @STB6100_NUMREGS
	.comm	_verbose,8,3                    ## @verbose
	.comm	_FE_ERROR,4,2                   ## @FE_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid register range %d:%d"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FE_DEBUG,8,3                   ## @FE_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"    Write @ 0x%02x: [%d:%d]"

L_.str.2:                               ## @.str.2
	.asciz	"        %s: 0x%02x"

	.comm	_stb6100_regnames,8,3           ## @stb6100_regnames
L_.str.3:                               ## @.str.3
	.asciz	"(0x%x) write err [%d:%d], rc=[%d]"

	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.no_dead_strip	_stb6100_write_reg_range
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stb6100_write_reg_range
_stb6100_write_reg_range:               ; @stb6100_write_reg_range
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x20, x3
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	add	w12, w3, #1
	lsl	x8, x12, #2
	mov	x9, x8
Lloh3:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh4:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x23, x9, x8
	mov	sp, x23
	stur	x23, [x29, #-112]
	stp	w12, wzr, [x29, #-104]
	ldr	x8, [x0]
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	cmp	w2, #1
	add	w8, w3, w2
Lloh5:
	adrp	x9, _STB6100_NUMREGS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _STB6100_NUMREGS@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	ccmp	w8, w9, #0, ge
	cset	w0, gt
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _verbose@GOTPAGE
Lloh9:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh10:
	ldr	x0, [x8]
Lloh11:
	adrp	x8, _FE_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FE_ERROR@GOTPAGEOFF]
Lloh13:
	ldrsw	x1, [x8]
Lloh14:
	adrp	x3, l_.str@PAGE
Lloh15:
	add	x3, x3, l_.str@PAGEOFF
	mov	w2, #1
	mov	x4, x19
	mov	x5, x20
	bl	_dprintk
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_2:
	add	x0, x23, #4
	mov	x1, x22
	mov	x2, x20
	bl	_memcpy
	str	w19, [x23]
Lloh18:
	adrp	x24, _verbose@GOTPAGE
Lloh19:
	ldr	x24, [x24, _verbose@GOTPAGEOFF]
	ldr	x8, [x24]
Lloh20:
	adrp	x25, _FE_DEBUG@GOTPAGE
Lloh21:
	ldr	x25, [x25, _FE_DEBUG@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x9
	cset	w0, gt
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.3:
	ldr	x0, [x24]
	ldr	x1, [x25]
	ldr	x8, [x21]
	ldr	w4, [x8]
	str	x20, [sp, #-16]!
Lloh22:
	adrp	x3, l_.str.1@PAGE
Lloh23:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w2, #1
	mov	x5, x19
	bl	_dprintk
	add	sp, sp, #16
	cmp	w20, #1
	b.lt	LBB0_6
; %bb.4:
	sbfiz	x26, x19, #2, #32
Lloh24:
	adrp	x27, _stb6100_regnames@GOTPAGE
Lloh25:
	ldr	x27, [x27, _stb6100_regnames@GOTPAGEOFF]
	mov	w28, w20
Lloh26:
	adrp	x23, l_.str.2@PAGE
Lloh27:
	add	x23, x23, l_.str.2@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x24]
	ldr	x1, [x25]
	ldr	x8, [x27]
	ldr	w4, [x8, x26]
	ldr	w5, [x22], #4
	mov	w2, #1
	mov	x3, x23
	bl	_dprintk
	add	x26, x26, #4
	subs	x28, x28, #1
	b.ne	LBB0_5
LBB0_6:
	ldr	w0, [x21, #8]
	sub	x1, x29, #112
	mov	w2, #1
	bl	_i2c_transfer
	mov	x22, x0
	cmp	w0, #1
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_9
; %bb.7:
	ldr	x0, [x24]
Lloh28:
	adrp	x8, _FE_ERROR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _FE_ERROR@GOTPAGEOFF]
Lloh30:
	ldrsw	x1, [x8]
	ldr	x8, [x21]
	ldr	w4, [x8]
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	stp	x20, x22, [sp, #-16]!
Lloh31:
	adrp	x3, l_.str.3@PAGE
Lloh32:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	w2, #1
	mov	x5, x19
	bl	_dprintk
	add	sp, sp, #16
Lloh33:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldur	x8, [x29, #-88]
Lloh35:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh36:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_STB6100_NUMREGS,4,2            ; @STB6100_NUMREGS
	.comm	_verbose,8,3                    ; @verbose
	.comm	_FE_ERROR,4,2                   ; @FE_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid register range %d:%d"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FE_DEBUG,8,3                   ; @FE_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"    Write @ 0x%02x: [%d:%d]"

l_.str.2:                               ; @.str.2
	.asciz	"        %s: 0x%02x"

	.comm	_stb6100_regnames,8,3           ; @stb6100_regnames
l_.str.3:                               ; @.str.3
	.asciz	"(0x%x) write err [%d:%d], rc=[%d]"

	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.no_dead_strip	_stb6100_write_reg_range
.subsections_via_symbols
