	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s921_read_status
_s921_read_status:                      ## @s921_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, %rbx
	movq	(%rdi), %r14
	movl	$5, %edi
	callq	_mdelay
	movq	_ISDB_T_CMD_GET_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	movq	%r14, %rdi
	callq	_s921_isdb_cmd
	movl	$0, (%rbx)
	movl	-20(%rbp), %esi
	leaq	L_.str(%rip), %rdi
	callq	_printk
	cmpl	$1, -20(%rbp)
	jne	LBB0_2
## %bb.1:
	movq	_FE_HAS_CARRIER@GOTPCREL(%rip), %rax
	movl	(%rbx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	_FE_HAS_VITERBI@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	_FE_HAS_LOCK@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	_FE_HAS_SYNC@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	_FE_HAS_SIGNAL@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
LBB0_2:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISDB_T_CMD_GET_STATUS,4,2      ## @ISDB_T_CMD_GET_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"status: %02x\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s921_read_status
_s921_read_status:                      ; @s921_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	w0, #5
	bl	_mdelay
Lloh0:
	adrp	x8, _ISDB_T_CMD_GET_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ISDB_T_CMD_GET_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_s921_isdb_cmd
	str	wzr, [x19]
	ldr	w1, [sp, #12]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _FE_HAS_CARRIER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FE_HAS_CARRIER@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
Lloh8:
	adrp	x9, _FE_HAS_VITERBI@GOTPAGE
Lloh9:
	ldr	x9, [x9, _FE_HAS_VITERBI@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
Lloh11:
	adrp	x9, _FE_HAS_LOCK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _FE_HAS_LOCK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
Lloh14:
	adrp	x9, _FE_HAS_SYNC@GOTPAGE
Lloh15:
	ldr	x9, [x9, _FE_HAS_SYNC@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
Lloh17:
	adrp	x9, _FE_HAS_SIGNAL@GOTPAGE
Lloh18:
	ldr	x9, [x9, _FE_HAS_SIGNAL@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ISDB_T_CMD_GET_STATUS,4,2      ; @ISDB_T_CMD_GET_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"status: %02x\n"

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