	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function or51211_read_status
_or51211_read_status:                   ## @or51211_read_status
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	(%rdi), %rbx
	movl	$196612, -24(%rbp)              ## imm = 0x30004
	movl	$0, (%rsi)
	movq	(%rbx), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$3, %ecx
	callq	_i2c_writebytes
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_3:
	movl	$3, %edi
	callq	_msleep
	movq	(%rbx), %rax
	movl	(%rax), %esi
	leaq	-18(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$2, %ecx
	callq	_i2c_readbytes
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	callq	_pr_warn
	movl	$-1, %eax
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movzbl	-18(%rbp), %esi
	movzbl	-17(%rbp), %edx
	leaq	L_.str.2(%rip), %rdi
	callq	_dprintk
	xorl	%eax, %eax
	testb	$1, -18(%rbp)
	je	LBB0_7
## %bb.6:
	movq	_FE_HAS_SIGNAL@GOTPCREL(%rip), %rcx
	movl	(%r14), %edx
	orl	(%rcx), %edx
	movl	%edx, (%r14)
	movq	_FE_HAS_CARRIER@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, (%r14)
	movq	_FE_HAS_VITERBI@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, (%r14)
	movq	_FE_HAS_SYNC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, (%r14)
	movq	_FE_HAS_LOCK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, (%r14)
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"write error\n"

L_.str.1:                               ## @.str.1
	.asciz	"read error\n"

L_.str.2:                               ## @.str.2
	.asciz	"%x %x\n"

	.comm	_FE_HAS_SIGNAL,4,2              ## @FE_HAS_SIGNAL
	.comm	_FE_HAS_CARRIER,4,2             ## @FE_HAS_CARRIER
	.comm	_FE_HAS_VITERBI,4,2             ## @FE_HAS_VITERBI
	.comm	_FE_HAS_SYNC,4,2                ## @FE_HAS_SYNC
	.comm	_FE_HAS_LOCK,4,2                ## @FE_HAS_LOCK
	.no_dead_strip	_or51211_read_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function or51211_read_status
_or51211_read_status:                   ; @or51211_read_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	x20, [x0]
	mov	w8, #4
	movk	w8, #3, lsl #16
	str	w8, [sp, #8]
	str	wzr, [x1]
	ldr	x8, [x20]
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x20
	mov	w3, #3
	bl	_i2c_writebytes
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	mov	w0, #3
	bl	_msleep
	ldr	x8, [x20]
	ldr	w1, [x8]
	add	x2, sp, #14
	mov	x0, x20
	mov	w3, #2
	bl	_i2c_readbytes
	cbz	x0, LBB0_6
; %bb.3:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_4:
	bl	_pr_warn
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_6:
	ldrb	w1, [sp, #14]
	ldrb	w2, [sp, #15]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_dprintk
	ldrb	w8, [sp, #14]
	tbnz	w8, #0, LBB0_8
; %bb.7:
	mov	w0, #0
	b	LBB0_5
LBB0_8:
	mov	w0, #0
Lloh6:
	adrp	x8, _FE_HAS_SIGNAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FE_HAS_SIGNAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
Lloh9:
	adrp	x9, _FE_HAS_CARRIER@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FE_HAS_CARRIER@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
Lloh12:
	adrp	x9, _FE_HAS_VITERBI@GOTPAGE
Lloh13:
	ldr	x9, [x9, _FE_HAS_VITERBI@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
Lloh15:
	adrp	x9, _FE_HAS_SYNC@GOTPAGE
Lloh16:
	ldr	x9, [x9, _FE_HAS_SYNC@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
Lloh18:
	adrp	x9, _FE_HAS_LOCK@GOTPAGE
Lloh19:
	ldr	x9, [x9, _FE_HAS_LOCK@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"write error\n"

l_.str.1:                               ; @.str.1
	.asciz	"read error\n"

l_.str.2:                               ; @.str.2
	.asciz	"%x %x\n"

	.comm	_FE_HAS_SIGNAL,4,2              ; @FE_HAS_SIGNAL
	.comm	_FE_HAS_CARRIER,4,2             ; @FE_HAS_CARRIER
	.comm	_FE_HAS_VITERBI,4,2             ; @FE_HAS_VITERBI
	.comm	_FE_HAS_SYNC,4,2                ; @FE_HAS_SYNC
	.comm	_FE_HAS_LOCK,4,2                ; @FE_HAS_LOCK
	.no_dead_strip	_or51211_read_status
.subsections_via_symbols
