	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt352_read_status
_mt352_read_status:                     ## @mt352_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %rbx
	movq	_STATUS_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mt352_read_register
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %r12d
	movq	_STATUS_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mt352_read_register
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	movl	%eax, %r15d
	movq	_STATUS_3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mt352_read_register
	testl	%eax, %eax
	js	LBB0_1
## %bb.4:
	movl	$0, (%r14)
	xorl	%ecx, %ecx
	testb	$16, %r12b
	jne	LBB0_5
## %bb.6:
	testb	$2, %r12b
	jne	LBB0_7
LBB0_8:
	testb	$32, %r12b
	jne	LBB0_9
LBB0_10:
	testb	$2, %r15b
	jne	LBB0_11
LBB0_12:
	testb	$64, %al
	je	LBB0_14
LBB0_13:
	movq	_FE_HAS_SIGNAL@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%r14)
LBB0_14:
	movq	_FE_HAS_CARRIER@GOTPCREL(%rip), %rax
	movq	_FE_HAS_VITERBI@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	movq	_FE_HAS_SYNC@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%ecx, %esi
	notl	%esi
	xorl	%eax, %eax
	testl	%esi, %edx
	je	LBB0_16
## %bb.15:
	movq	_FE_HAS_LOCK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	notl	%edx
	andl	%edx, %ecx
	movl	%ecx, (%r14)
	jmp	LBB0_16
LBB0_1:
	movq	_EREMOTEIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_16:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_FE_HAS_CARRIER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%r14)
	testb	$2, %r12b
	je	LBB0_8
LBB0_7:
	movq	_FE_HAS_VITERBI@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, (%r14)
	testb	$32, %r12b
	je	LBB0_10
LBB0_9:
	movq	_FE_HAS_LOCK@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, (%r14)
	testb	$2, %r15b
	je	LBB0_12
LBB0_11:
	movq	_FE_HAS_SYNC@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, (%r14)
	testb	$64, %al
	jne	LBB0_13
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_STATUS_0,4,2                   ## @STATUS_0
	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.comm	_STATUS_1,4,2                   ## @STATUS_1
	.comm	_STATUS_3,4,2                   ## @STATUS_3
	.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	_mt352_read_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt352_read_status
_mt352_read_status:                     ; @mt352_read_status
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	ldr	x22, [x0]
Lloh0:
	adrp	x8, _STATUS_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STATUS_0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_mt352_read_register
	tbnz	w0, #31, LBB0_15
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x8, _STATUS_1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STATUS_1@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_mt352_read_register
	tbnz	w0, #31, LBB0_15
; %bb.2:
	mov	x20, x0
Lloh6:
	adrp	x8, _STATUS_3@GOTPAGE
Lloh7:
	ldr	x8, [x8, _STATUS_3@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_mt352_read_register
	tbnz	w0, #31, LBB0_15
; %bb.3:
	mov	w8, #0
	str	wzr, [x19]
Lloh9:
	adrp	x9, _FE_HAS_CARRIER@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FE_HAS_CARRIER@GOTPAGEOFF]
	tbz	w21, #4, LBB0_5
; %bb.4:
	ldr	w8, [x9]
	str	w8, [x19]
LBB0_5:
Lloh11:
	adrp	x10, _FE_HAS_VITERBI@GOTPAGE
Lloh12:
	ldr	x10, [x10, _FE_HAS_VITERBI@GOTPAGEOFF]
	tbz	w21, #1, LBB0_7
; %bb.6:
	ldr	w11, [x10]
	orr	w8, w8, w11
	str	w8, [x19]
LBB0_7:
	tbz	w21, #5, LBB0_9
; %bb.8:
Lloh13:
	adrp	x11, _FE_HAS_LOCK@GOTPAGE
Lloh14:
	ldr	x11, [x11, _FE_HAS_LOCK@GOTPAGEOFF]
Lloh15:
	ldr	w11, [x11]
	orr	w8, w8, w11
	str	w8, [x19]
LBB0_9:
Lloh16:
	adrp	x11, _FE_HAS_SYNC@GOTPAGE
Lloh17:
	ldr	x11, [x11, _FE_HAS_SYNC@GOTPAGEOFF]
	tbz	w20, #1, LBB0_11
; %bb.10:
	ldr	w12, [x11]
	orr	w8, w8, w12
	str	w8, [x19]
LBB0_11:
	tbz	w0, #6, LBB0_13
; %bb.12:
Lloh18:
	adrp	x12, _FE_HAS_SIGNAL@GOTPAGE
Lloh19:
	ldr	x12, [x12, _FE_HAS_SIGNAL@GOTPAGEOFF]
Lloh20:
	ldr	w12, [x12]
	orr	w8, w8, w12
	str	w8, [x19]
LBB0_13:
	ldr	w9, [x9]
	ldr	w10, [x10]
	orr	w9, w10, w9
	ldr	w10, [x11]
	orr	w9, w9, w10
	bics	wzr, w9, w8
	b.ne	LBB0_17
; %bb.14:
	mov	w0, #0
	b	LBB0_16
LBB0_15:
Lloh21:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_17:
	mov	w0, #0
Lloh24:
	adrp	x9, _FE_HAS_LOCK@GOTPAGE
Lloh25:
	ldr	x9, [x9, _FE_HAS_LOCK@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	bic	w8, w8, w9
	str	w8, [x19]
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_STATUS_0,4,2                   ; @STATUS_0
	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.comm	_STATUS_1,4,2                   ; @STATUS_1
	.comm	_STATUS_3,4,2                   ; @STATUS_3
	.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	_mt352_read_status
.subsections_via_symbols
