	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stb6100_read_reg
_stb6100_read_reg:                      ## @stb6100_read_reg
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_STB6100_NUMREGS@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%r15, -72(%rbp)
	movl	$1, -64(%rbp)
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	(%r12), %rax
	movslq	%r14d, %rbx
	movq	(%rax), %rax
	addq	%rbx, %rax
	movq	%rax, -56(%rbp)
	movl	8(%r12), %edi
	leaq	-72(%rbp), %rsi
	movl	$1, %edx
	callq	_i2c_transfer
	xorl	%edi, %edi
	cmpl	%ebx, (%r13)
	setle	%dil
	callq	_unlikely
	movq	_verbose@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_FE_ERROR@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	leaq	L_.str(%rip), %rcx
	xorl	%ebx, %ebx
	movl	$1, %edx
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_dprintk
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_2:
	movq	_FE_DEBUG@GOTPCREL(%rip), %r14
	xorl	%eax, %eax
	cmpq	(%r14), %rdi
	setg	%al
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	(%r13), %rdi
	movq	(%r14), %rsi
	movq	(%r12), %rax
	movl	(%rax), %r8d
	leaq	L_.str.1(%rip), %rcx
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_dprintk
	movq	(%r13), %rdi
	movq	(%r14), %rsi
	movq	_stb6100_regnames@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %r8d
	movl	(%r15), %r9d
	leaq	L_.str.2(%rip), %rcx
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_dprintk
LBB0_4:
	movl	(%r15), %ebx
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_STB6100_NUMREGS,4,2            ## @STB6100_NUMREGS
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_verbose,8,3                    ## @verbose
	.comm	_FE_ERROR,4,2                   ## @FE_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid register offset 0x%x"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FE_DEBUG,8,3                   ## @FE_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"    Read from 0x%02x"

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

	.comm	_stb6100_regnames,8,3           ## @stb6100_regnames
	.no_dead_strip	_stb6100_read_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stb6100_read_reg
_stb6100_read_reg:                      ; @stb6100_read_reg
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #32
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x23, _STB6100_NUMREGS@GOTPAGE
Lloh4:
	ldr	x23, [x23, _STB6100_NUMREGS@GOTPAGEOFF]
	ldr	w8, [x23]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	stur	x21, [x29, #-80]
	mov	w8, #1
Lloh7:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh8:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	stp	w8, w9, [x29, #-72]
	ldr	x8, [x0]
	ldr	x8, [x8]
	sxtw	x22, w20
	add	x8, x8, x22
	stur	x8, [x29, #-64]
	ldr	w0, [x0, #8]
	sub	x1, x29, #80
	mov	w2, #1
	bl	_i2c_transfer
	ldr	w8, [x23]
	cmp	w8, w20
	cset	w0, le
	bl	_unlikely
	mov	x8, x0
Lloh10:
	adrp	x23, _verbose@GOTPAGE
Lloh11:
	ldr	x23, [x23, _verbose@GOTPAGEOFF]
	ldr	x0, [x23]
	cbz	x8, LBB0_2
; %bb.1:
Lloh12:
	adrp	x8, _FE_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FE_ERROR@GOTPAGEOFF]
Lloh14:
	ldrsw	x1, [x8]
Lloh15:
	adrp	x3, l_.str@PAGE
Lloh16:
	add	x3, x3, l_.str@PAGEOFF
	mov	w2, #1
	mov	x4, x20
	bl	_dprintk
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_2:
Lloh20:
	adrp	x20, _FE_DEBUG@GOTPAGE
Lloh21:
	ldr	x20, [x20, _FE_DEBUG@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x0, x8
	cset	w0, gt
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x0, [x23]
	ldr	x1, [x20]
	ldr	x8, [x19]
	ldr	w4, [x8]
Lloh22:
	adrp	x3, l_.str.1@PAGE
Lloh23:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w2, #1
	bl	_dprintk
	ldr	x0, [x23]
	ldr	x1, [x20]
Lloh24:
	adrp	x8, _stb6100_regnames@GOTPAGE
Lloh25:
	ldr	x8, [x8, _stb6100_regnames@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	ldr	w4, [x8, x22, lsl #2]
	ldr	w8, [x21]
Lloh27:
	adrp	x3, l_.str.2@PAGE
Lloh28:
	add	x3, x3, l_.str.2@PAGEOFF
	str	x8, [sp, #-16]!
	mov	w2, #1
	bl	_dprintk
	add	sp, sp, #16
LBB0_4:
	ldr	w0, [x21]
LBB0_5:
	ldur	x8, [x29, #-56]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	sub	sp, x29, #48
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_STB6100_NUMREGS,4,2            ; @STB6100_NUMREGS
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_verbose,8,3                    ; @verbose
	.comm	_FE_ERROR,4,2                   ; @FE_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid register offset 0x%x"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FE_DEBUG,8,3                   ; @FE_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"    Read from 0x%02x"

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

	.comm	_stb6100_regnames,8,3           ; @stb6100_regnames
	.no_dead_strip	_stb6100_read_reg
.subsections_via_symbols
