	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pt3_set_lna
_pt3_set_lna:                           ## @pt3_set_lna
	.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	%rdi, %rbx
	callq	_pt3_find_adapter
	movq	%rax, %r14
	movq	(%rbx), %r13
	movq	_LNA_AUTO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpq	(%rax), %r13
	je	LBB0_10
## %bb.1:
	cmpq	(%r14), %r13
	je	LBB0_10
## %bb.2:
	movq	8(%r14), %r12
	leaq	4(%r12), %r15
	movq	%r15, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_4:
	movl	(%r12), %eax
	testq	%r13, %r13
	je	LBB0_7
## %bb.5:
	leal	1(%rax), %ecx
	movl	%ecx, (%r12)
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jg	LBB0_9
## %bb.6:
	movl	$1, %ebx
	jmp	LBB0_8
LBB0_7:
	leal	-1(%rax), %ecx
	movl	%ecx, (%r12)
	xorl	%ebx, %ebx
	cmpl	$1, %eax
	jg	LBB0_9
LBB0_8:
	movl	%ebx, (%r12)
	movq	%r12, %rdi
	movl	$1, %esi
	movl	%ebx, %edx
	callq	_pt3_set_tuner_power
	movl	%eax, %ebx
LBB0_9:
	xorl	%r12d, %r12d
	testq	%r13, %r13
	setne	%r12b
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	%r12, (%r14)
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LNA_AUTO,8,3                   ## @LNA_AUTO
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.no_dead_strip	_pt3_set_lna
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pt3_set_lna
_pt3_set_lna:                           ; @pt3_set_lna
	.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, x0
	bl	_pt3_find_adapter
	ldr	x23, [x20]
Lloh0:
	adrp	x8, _LNA_AUTO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LNA_AUTO@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x23, x8
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	cmp	x23, x8
	b.ne	LBB0_4
LBB0_2:
	mov	w22, #0
LBB0_3:
	mov	x0, x22
	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_4:
	ldr	x21, [x19, #8]
	add	x20, x21, #4
	mov	x0, x20
	bl	_mutex_lock_interruptible
	cbz	x0, LBB0_6
; %bb.5:
Lloh3:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_3
LBB0_6:
	ldr	w8, [x21]
	cbz	x23, LBB0_9
; %bb.7:
	add	w9, w8, #1
	str	w9, [x21]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.8:
	mov	w22, #0
	b	LBB0_12
LBB0_9:
	mov	w2, #0
	mov	w22, #0
	subs	w8, w8, #1
	str	w8, [x21]
	b.le	LBB0_11
	b	LBB0_12
LBB0_10:
	mov	w2, #1
LBB0_11:
	str	w2, [x21]
	mov	x0, x21
	mov	w1, #1
	bl	_pt3_set_tuner_power
	mov	x22, x0
LBB0_12:
	cmp	x23, #0
	cset	w21, ne
	mov	x0, x20
	bl	_mutex_unlock
	str	x21, [x19]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_LNA_AUTO,8,3                   ; @LNA_AUTO
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.no_dead_strip	_pt3_set_lna
.subsections_via_symbols
