	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv090x_read_reg
_stv090x_read_reg:                      ## @stv090x_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	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	16(%rdi), %rax
	movl	%esi, %ecx
	shrl	$8, %ecx
	movl	%ecx, -40(%rbp)
	movzbl	%r14b, %ecx
	movl	%ecx, -36(%rbp)
	leaq	-40(%rbp), %rcx
	movq	%rcx, -96(%rbp)
	movq	$2, -88(%rbp)
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	leaq	-100(%rbp), %rcx
	movq	%rcx, -72(%rbp)
	movl	$1, -64(%rbp)
	movq	_I2C_M_RD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -60(%rbp)
	movl	%eax, -56(%rbp)
	movl	8(%rdi), %edi
	leaq	-96(%rbp), %rsi
	movl	$2, %edx
	callq	_i2c_transfer
	cmpl	$2, %eax
	jne	LBB0_1
## %bb.4:
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	_FE_DEBUGREG@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setge	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_FE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-100(%rbp), %r8d
	leaq	L_.str.1(%rip), %rdx
	movl	$1, %esi
	movl	%r14d, %ecx
	callq	_dprintk
LBB0_6:
	movl	-100(%rbp), %eax
	jmp	LBB0_7
LBB0_1:
	movl	%eax, %ebx
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	je	LBB0_3
## %bb.2:
	movq	_FE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rdx
	movl	$1, %esi
	movl	%r14d, %ecx
	movl	%ebx, %r8d
	callq	_dprintk
LBB0_3:
	movq	_EREMOTEIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	testl	%ebx, %ebx
	cmovsl	%ebx, %eax
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	addq	$88, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.comm	_FE_ERROR,4,2                   ## @FE_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Read error, Reg=[0x%02x], Status=%d"

	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.comm	_FE_DEBUGREG,8,3                ## @FE_DEBUGREG
L_.str.1:                               ## @.str.1
	.asciz	"Reg=[0x%02x], data=%02x"

	.no_dead_strip	_stv090x_read_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function stv090x_read_reg
lCPI0_0:
	.long	2                               ; 0x2
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_stv090x_read_reg:                      ; @stv090x_read_reg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x8, [x0, #16]
	lsr	w9, w1, #8
	and	w10, w1, #0xff
	stp	w9, w10, [x29, #-48]
	sub	x9, x29, #48
	str	x9, [sp, #16]
Lloh3:
	adrp	x9, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [sp, #24]
	ldr	w8, [x8]
	str	w8, [sp, #32]
	add	x9, sp, #12
	str	x9, [sp, #40]
Lloh5:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh6:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
	mov	w10, #1
Lloh7:
	ldr	w9, [x9]
	stp	w10, w9, [sp, #48]
	str	w8, [sp, #56]
	ldr	w0, [x0, #8]
	add	x1, sp, #16
	mov	w2, #2
	bl	_i2c_transfer
	cmp	w0, #2
	b.ne	LBB0_4
; %bb.1:
	ldr	x8, [x20]
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _FE_DEBUGREG@GOTPAGE
Lloh9:
	ldr	x9, [x9, _FE_DEBUGREG@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ge
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.2:
Lloh11:
	adrp	x8, _FE_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FE_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	w4, [sp, #12]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #1
	mov	x3, x19
	bl	_dprintk
LBB0_3:
	ldr	w0, [sp, #12]
	b	LBB0_7
LBB0_4:
	mov	x21, x0
Lloh16:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_6
; %bb.5:
Lloh19:
	adrp	x8, _FE_ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _FE_ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x2, l_.str@PAGE
Lloh23:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #1
	mov	x3, x19
	mov	x4, x21
	bl	_dprintk
LBB0_6:
Lloh24:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmp	w21, #0
	csneg	w0, w21, w8, lt
LBB0_7:
	ldur	x8, [x29, #-40]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.comm	_FE_ERROR,4,2                   ; @FE_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Read error, Reg=[0x%02x], Status=%d"

	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.comm	_FE_DEBUGREG,8,3                ; @FE_DEBUGREG
l_.str.1:                               ; @.str.1
	.asciz	"Reg=[0x%02x], data=%02x"

	.no_dead_strip	_stv090x_read_reg
.subsections_via_symbols
