	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm3510_read_status
_bcm3510_read_status:                   ## @bcm3510_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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_bcm3510_refresh_state
	movl	$0, (%r14)
	cmpq	$0, 24(%rbx)
	je	LBB0_1
## %bb.2:
	movq	_FE_HAS_LOCK@GOTPCREL(%rip), %rcx
	movq	_FE_HAS_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movl	%eax, (%r14)
	cmpq	$0, 16(%rbx)
	je	LBB0_5
LBB0_4:
	movq	_FE_HAS_VITERBI@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r14)
LBB0_5:
	cmpq	$0, 8(%rbx)
	je	LBB0_7
## %bb.6:
	movq	_FE_HAS_SIGNAL@GOTPCREL(%rip), %rcx
	movq	_FE_HAS_CARRIER@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	orl	%edx, %eax
	movl	%eax, (%r14)
LBB0_7:
	movq	_FE_HAS_LOCK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	$500, %eax                      ## imm = 0x1F4
	movl	$1500, %ecx                     ## imm = 0x5DC
	cmovel	%eax, %ecx
	movl	%ecx, (%rbx)
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdi
	callq	_deb_info
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	cmpq	$0, 16(%rbx)
	jne	LBB0_4
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_FE_HAS_LOCK,4,2                ## @FE_HAS_LOCK
	.comm	_FE_HAS_SYNC,4,2                ## @FE_HAS_SYNC
	.comm	_FE_HAS_VITERBI,4,2             ## @FE_HAS_VITERBI
	.comm	_FE_HAS_SIGNAL,4,2              ## @FE_HAS_SIGNAL
	.comm	_FE_HAS_CARRIER,4,2             ## @FE_HAS_CARRIER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"real_status: %02x\n"

	.no_dead_strip	_bcm3510_read_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm3510_read_status
_bcm3510_read_status:                   ; @bcm3510_read_status
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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	x0, x20
	bl	_bcm3510_refresh_state
	str	wzr, [x19]
	ldr	x9, [x20, #24]
Lloh0:
	adrp	x8, _FE_HAS_LOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FE_HAS_LOCK@GOTPAGEOFF]
	cbz	x9, LBB0_2
; %bb.1:
	ldr	w9, [x8]
Lloh2:
	adrp	x10, _FE_HAS_SYNC@GOTPAGE
Lloh3:
	ldr	x10, [x10, _FE_HAS_SYNC@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [x19]
LBB0_2:
	ldr	x10, [x20, #16]
	cbz	x10, LBB0_4
; %bb.3:
Lloh5:
	adrp	x10, _FE_HAS_VITERBI@GOTPAGE
Lloh6:
	ldr	x10, [x10, _FE_HAS_VITERBI@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	orr	w9, w9, w10
	str	w9, [x19]
LBB0_4:
	ldr	x10, [x20, #8]
	cbz	x10, LBB0_6
; %bb.5:
Lloh8:
	adrp	x10, _FE_HAS_SIGNAL@GOTPAGE
Lloh9:
	ldr	x10, [x10, _FE_HAS_SIGNAL@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
Lloh11:
	adrp	x11, _FE_HAS_CARRIER@GOTPAGE
Lloh12:
	ldr	x11, [x11, _FE_HAS_CARRIER@GOTPAGEOFF]
Lloh13:
	ldr	w11, [x11]
	orr	w10, w11, w10
	orr	w9, w10, w9
	str	w9, [x19]
LBB0_6:
	ldr	w8, [x8]
	tst	w8, w9
	mov	w8, #1500
	mov	w9, #500
	csel	w8, w9, w8, eq
	str	w8, [x20]
	ldr	w1, [x19]
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_deb_info
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_FE_HAS_LOCK,4,2                ; @FE_HAS_LOCK
	.comm	_FE_HAS_SYNC,4,2                ; @FE_HAS_SYNC
	.comm	_FE_HAS_VITERBI,4,2             ; @FE_HAS_VITERBI
	.comm	_FE_HAS_SIGNAL,4,2              ; @FE_HAS_SIGNAL
	.comm	_FE_HAS_CARRIER,4,2             ; @FE_HAS_CARRIER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"real_status: %02x\n"

	.no_dead_strip	_bcm3510_read_status
.subsections_via_symbols
