	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib9000_get_frontend
_dib9000_get_frontend:                  ## @dib9000_get_frontend
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rdi), %r12
	cmpq	$0, (%r12)
	jne	LBB0_3
## %bb.1:
	leaq	8(%r12), %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	js	LBB0_2
LBB0_3:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_MAX_NUMBER_OF_FRONTENDS@GOTPCREL(%rip), %rax
	cmpq	$2, (%rax)
	jb	LBB0_14
## %bb.4:
	movl	$1, %ebx
	leaq	-44(%rbp), %r13
	movq	_FE_HAS_SYNC@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rsi
	callq	*40(%rdi)
	movl	(%r14), %eax
	testl	%eax, -44(%rbp)
	jne	LBB0_7
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movq	_MAX_NUMBER_OF_FRONTENDS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jb	LBB0_5
LBB0_14:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_dib9000_fw_get_channel
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_19
## %bb.15:
	movq	_MAX_NUMBER_OF_FRONTENDS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%r13d, %r13d
	cmpq	$2, %rax
	jb	LBB0_19
## %bb.16:
	movq	16(%r12), %rcx
	movl	$1, %edx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movups	16(%r15), %xmm0
	movups	%xmm0, 16(%rsi)
	movups	(%r15), %xmm0
	movups	%xmm0, (%rsi)
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_17
	jmp	LBB0_19
LBB0_2:
	leaq	L_.str(%rip), %rdi
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_dprintk
	movq	_EINTR@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_21
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r13d, %r13d
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_dprintk
	movq	16(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	%r15, %rsi
	callq	*32(%rdi)
	movq	_MAX_NUMBER_OF_FRONTENDS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_19
## %bb.8:
	movq	16(%r12), %rcx
	xorl	%r13d, %r13d
	xorl	%edx, %edx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	je	LBB0_19
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_19
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	%rdx, %rbx
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	(%rcx,%rbx,8), %rdi
	movups	16(%rdi), %xmm0
	movups	%xmm0, 16(%rsi)
	movups	(%rdi), %xmm0
	movups	%xmm0, (%rsi)
	jmp	LBB0_12
LBB0_19:
	cmpq	$0, (%r12)
	jne	LBB0_21
## %bb.20:
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_mutex_unlock
LBB0_21:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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_SYNC,4,2                ## @FE_HAS_SYNC
L_.str.1:                               ## @.str.1
	.asciz	"TPS lock on the slave%i\n"

	.no_dead_strip	_dib9000_get_frontend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib9000_get_frontend
_dib9000_get_frontend:                  ; @dib9000_get_frontend
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	mov	x20, x0
	ldr	x21, [x0]
	ldr	x8, [x21]
	cbnz	x8, LBB0_2
; %bb.1:
	add	x0, x21, #8
	bl	_mutex_lock_interruptible
	tbnz	x0, #63, LBB0_13
LBB0_2:
Lloh0:
	adrp	x23, _MAX_NUMBER_OF_FRONTENDS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MAX_NUMBER_OF_FRONTENDS@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x8, #2
	b.lo	LBB0_7
; %bb.3:
	mov	w22, #1
Lloh2:
	adrp	x24, _FE_HAS_SYNC@GOTPAGE
Lloh3:
	ldr	x24, [x24, _FE_HAS_SYNC@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #16]
	ldr	x0, [x8, x22, lsl #3]
	cbz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x0, #40]
	add	x1, sp, #12
	blr	x8
	ldr	w8, [sp, #12]
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	ldr	x8, [x23]
	cmp	x22, x8
	b.lo	LBB0_4
LBB0_7:
	mov	x0, x20
	bl	_dib9000_fw_get_channel
	mov	x20, x0
	cbz	w0, LBB0_9
; %bb.8:
	ldr	x8, [x21]
	cbnz	x8, LBB0_22
	b	LBB0_21
LBB0_9:
	ldr	x8, [x23]
	cmp	x8, #2
	b.lo	LBB0_20
; %bb.10:
	ldr	x9, [x21, #16]
	sub	x8, x8, #1
	add	x9, x9, #8
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	cbz	x10, LBB0_20
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	q0, [x19, #16]
	str	q0, [x10, #16]
	ldr	q0, [x19]
	str	q0, [x10]
	add	x9, x9, #8
	subs	x8, x8, #1
	b.ne	LBB0_11
	b	LBB0_20
LBB0_13:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
Lloh6:
	adrp	x8, _EINTR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_22
LBB0_14:
	str	x22, [sp]
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dprintk
	ldr	x8, [x21, #16]
	ldr	x0, [x8, x22, lsl #3]
	ldr	x8, [x0, #32]
	mov	x1, x19
	blr	x8
	ldr	x8, [x23]
	cbz	x8, LBB0_20
; %bb.15:
	mov	x9, #0
	ldr	x10, [x21, #16]
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x9, x9, #1
	cmp	x8, x9
	b.eq	LBB0_20
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10, x9, lsl #3]
	cbz	x11, LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	cmp	x22, x9
	b.eq	LBB0_16
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x12, [x10, x22, lsl #3]
	ldr	q0, [x12, #16]
	str	q0, [x11, #16]
	ldr	q0, [x12]
	str	q0, [x11]
	b	LBB0_16
LBB0_20:
	mov	w20, #0
	ldr	x8, [x21]
	cbnz	x8, LBB0_22
LBB0_21:
	add	x0, x21, #8
	bl	_mutex_unlock
LBB0_22:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.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_SYNC,4,2                ; @FE_HAS_SYNC
l_.str.1:                               ; @.str.1
	.asciz	"TPS lock on the slave%i\n"

	.no_dead_strip	_dib9000_get_frontend
.subsections_via_symbols
