	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib9000_read_status
_dib9000_read_status:                   ## @dib9000_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	(%rdi), %r12
	movq	%r12, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	js	LBB0_18
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_MAX_NUMBER_OF_FRONTENDS@GOTPCREL(%rip), %r13
	xorl	%r15d, %r15d
	cmpq	$2, (%r13)
	movl	$0, %ebx
	jb	LBB0_5
## %bb.2:
	movl	$1, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%r14,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	callq	_dib9000_read_lock
	orl	%eax, %ebx
	incq	%r14
	cmpq	(%r13), %r14
	jb	LBB0_3
LBB0_5:
	movq	%r12, %rdi
	movl	$535, %esi                      ## imm = 0x217
	callq	_dib9000_read_word
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	$0, (%rsi)
	movl	%eax, %ecx
	orl	%ebx, %ecx
	testl	$32768, %ecx                    ## imm = 0x8000
	jne	LBB0_6
## %bb.7:
	testl	$12288, %ecx                    ## imm = 0x3000
	jne	LBB0_8
LBB0_9:
	testl	$256, %ecx                      ## imm = 0x100
	je	LBB0_11
LBB0_10:
	movq	_FE_HAS_VITERBI@GOTPCREL(%rip), %rdx
	orl	(%rdx), %r15d
	movl	%r15d, (%rsi)
LBB0_11:
	notl	%eax
	testb	$56, %al
	je	LBB0_13
## %bb.12:
	andl	$56, %ebx
	cmpl	$56, %ebx
	jne	LBB0_14
LBB0_13:
	movq	_FE_HAS_SYNC@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movl	%r15d, (%rsi)
LBB0_14:
	testb	$8, %cl
	je	LBB0_16
## %bb.15:
	movq	_FE_HAS_LOCK@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movl	%r15d, (%rsi)
LBB0_16:
	movq	%r12, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_18:
	leaq	L_.str(%rip), %rdi
	callq	_dprintk
	movq	_EINTR@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_FE_HAS_SIGNAL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r15d
	movl	%r15d, (%rsi)
	testl	$12288, %ecx                    ## imm = 0x3000
	je	LBB0_9
LBB0_8:
	movq	_FE_HAS_CARRIER@GOTPCREL(%rip), %rdx
	orl	(%rdx), %r15d
	movl	%r15d, (%rsi)
	testl	$256, %ecx                      ## imm = 0x100
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not get the lock\n"

	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_MAX_NUMBER_OF_FRONTENDS,8,3    ## @MAX_NUMBER_OF_FRONTENDS
	.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	_dib9000_read_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib9000_read_status
_dib9000_read_status:                   ; @dib9000_read_status
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	ldr	x19, [x0]
	mov	x0, x19
	bl	_mutex_lock_interruptible
	tbnz	x0, #63, LBB0_5
; %bb.1:
Lloh0:
	adrp	x22, _MAX_NUMBER_OF_FRONTENDS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MAX_NUMBER_OF_FRONTENDS@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x8, #2
	b.lo	LBB0_6
; %bb.2:
	mov	w21, #0
	mov	w23, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x23, lsl #3]
	cbz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_dib9000_read_lock
	orr	w21, w0, w21
	add	x23, x23, #1
	ldr	x8, [x22]
	cmp	x23, x8
	b.lo	LBB0_3
	b	LBB0_7
LBB0_5:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
Lloh4:
	adrp	x8, _EINTR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_17
LBB0_6:
	mov	w21, #0
LBB0_7:
	mov	x0, x19
	mov	w1, #535
	bl	_dib9000_read_word
	mov	w8, #0
	str	wzr, [x20]
	orr	w9, w0, w21
	tbnz	w9, #15, LBB0_18
; %bb.8:
	tst	w9, #0x3000
	b.ne	LBB0_19
LBB0_9:
	orr	w9, w0, w21
	tbz	w9, #8, LBB0_11
LBB0_10:
Lloh7:
	adrp	x9, _FE_HAS_VITERBI@GOTPAGE
Lloh8:
	ldr	x9, [x9, _FE_HAS_VITERBI@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x20]
LBB0_11:
	mvn	w9, w0
	tst	w9, #0x38
	b.eq	LBB0_13
; %bb.12:
	and	w9, w21, #0x38
	cmp	w9, #56
	b.ne	LBB0_14
LBB0_13:
Lloh10:
	adrp	x9, _FE_HAS_SYNC@GOTPAGE
Lloh11:
	ldr	x9, [x9, _FE_HAS_SYNC@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x20]
LBB0_14:
	orr	w9, w0, w21
	tbz	w9, #3, LBB0_16
; %bb.15:
Lloh13:
	adrp	x9, _FE_HAS_LOCK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _FE_HAS_LOCK@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x20]
LBB0_16:
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
LBB0_17:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_18:
Lloh16:
	adrp	x8, _FE_HAS_SIGNAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FE_HAS_SIGNAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x20]
	tst	w9, #0x3000
	b.eq	LBB0_9
LBB0_19:
Lloh19:
	adrp	x9, _FE_HAS_CARRIER@GOTPAGE
Lloh20:
	ldr	x9, [x9, _FE_HAS_CARRIER@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x20]
	orr	w9, w0, w21
	tbnz	w9, #8, LBB0_10
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not get the lock\n"

	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_MAX_NUMBER_OF_FRONTENDS,8,3    ; @MAX_NUMBER_OF_FRONTENDS
	.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	_dib9000_read_status
.subsections_via_symbols
