	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_avc_lnb_control                ## -- Begin function avc_lnb_control
	.p2align	4, 0x90
_avc_lnb_control:                       ## @avc_lnb_control
	.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	%r9, %r12
	movl	%r8d, %r13d
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	16(%rdi), %r15
	addq	$4, %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	_AVC_CTYPE_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	movq	_AVC_SUBUNIT_TYPE_TUNER@GOTPCREL(%rip), %rax
	movl	(%rbx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%r15)
	movq	_AVC_OPCODE_VENDOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	_SFE_VENDOR_DE_COMPANYID_0@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	8(%r15), %rcx
	movb	%al, (%rcx)
	movq	_SFE_VENDOR_DE_COMPANYID_1@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	8(%r15), %rcx
	movb	%al, 1(%rcx)
	movq	_SFE_VENDOR_DE_COMPANYID_2@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	8(%r15), %rcx
	movb	%al, 2(%rcx)
	movq	_SFE_VENDOR_OPCODE_LNB_CONTROL@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	8(%r15), %rcx
	movb	%al, 3(%rcx)
	movq	8(%r15), %rax
	movb	%r14b, 4(%rax)
	movq	8(%r15), %rax
	movb	%r13b, 5(%rax)
	movq	%rbx, %r14
	testb	%r13b, %r13b
	jle	LBB0_1
## %bb.2:
	movzbl	%r13b, %r8d
	movl	$6, %r9d
	xorl	%r10d, %r10d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r10
	cmpq	%r8, %r10
	je	LBB0_8
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	%r10, %rax
	shlq	$4, %rax
	movb	(%r12,%rax), %cl
	movq	8(%r15), %rsi
	movslq	%r9d, %r9
	movb	%cl, (%rsi,%r9)
	incl	%r9d
	cmpl	$0, (%r12,%rax)
	jle	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r12,%rax), %rsi
	leaq	(%r12,%rax), %rcx
	addq	$8, %rcx
	movslq	%r9d, %rax
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rcx), %rdx
	movzbl	(%rdx,%rdi,4), %edx
	movq	8(%r15), %rbx
	addq	%rax, %rbx
	movb	%dl, (%rdi,%rbx)
	incq	%rdi
	movslq	(%rsi), %rdx
	cmpq	%rdx, %rdi
	jl	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	addl	%edi, %r9d
	jmp	LBB0_7
LBB0_1:
	movl	$6, %r9d
LBB0_8:
	movq	8(%r15), %rax
	movslq	%r9d, %rbx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movb	%cl, (%rax,%rbx)
	movq	8(%r15), %rax
	leal	2(%rbx), %esi
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movb	%cl, 1(%rbx,%rax)
	movq	%r15, %rdi
	callq	_pad_operands
	leal	5(%rbx), %edi
	movl	$4, %esi
	callq	_ALIGN
	movq	%r14, %rbx
	movl	%eax, 12(%r14)
	movq	%r14, %rdi
	callq	_avc_write
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_11
## %bb.9:
	movq	(%r15), %rax
	movq	_AVC_RESPONSE_ACCEPTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.10:
	movl	8(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_11:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVC_CTYPE_CONTROL,4,2          ## @AVC_CTYPE_CONTROL
	.comm	_AVC_SUBUNIT_TYPE_TUNER,4,2     ## @AVC_SUBUNIT_TYPE_TUNER
	.comm	_AVC_OPCODE_VENDOR,4,2          ## @AVC_OPCODE_VENDOR
	.comm	_SFE_VENDOR_DE_COMPANYID_0,1,0  ## @SFE_VENDOR_DE_COMPANYID_0
	.comm	_SFE_VENDOR_DE_COMPANYID_1,1,0  ## @SFE_VENDOR_DE_COMPANYID_1
	.comm	_SFE_VENDOR_DE_COMPANYID_2,1,0  ## @SFE_VENDOR_DE_COMPANYID_2
	.comm	_SFE_VENDOR_OPCODE_LNB_CONTROL,1,0 ## @SFE_VENDOR_OPCODE_LNB_CONTROL
	.comm	_AVC_RESPONSE_ACCEPTED,8,3      ## @AVC_RESPONSE_ACCEPTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LNB control failed\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_avc_lnb_control                ; -- Begin function avc_lnb_control
	.p2align	2
_avc_lnb_control:                       ; @avc_lnb_control
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x5
	mov	x25, x4
	mov	x22, x3
	mov	x23, x2
	mov	x26, x1
	mov	x20, x0
	ldr	x21, [x0, #16]
	add	x19, x0, #4
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x8, _AVC_CTYPE_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVC_CTYPE_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AVC_SUBUNIT_TYPE_TUNER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AVC_SUBUNIT_TYPE_TUNER@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ldr	w10, [x20]
	orr	w9, w10, w9
	str	w9, [x21]
Lloh6:
	adrp	x9, _AVC_OPCODE_VENDOR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AVC_OPCODE_VENDOR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _SFE_VENDOR_DE_COMPANYID_0@GOTPAGE
Lloh10:
	ldr	x10, [x10, _SFE_VENDOR_DE_COMPANYID_0@GOTPAGEOFF]
	stp	w9, w8, [x21, #16]
	ldrb	w8, [x10]
	ldr	x9, [x21, #8]
	strb	w8, [x9]
Lloh11:
	adrp	x8, _SFE_VENDOR_DE_COMPANYID_1@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SFE_VENDOR_DE_COMPANYID_1@GOTPAGEOFF]
	ldrb	w8, [x8]
	ldr	x9, [x21, #8]
	strb	w8, [x9, #1]
Lloh13:
	adrp	x8, _SFE_VENDOR_DE_COMPANYID_2@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SFE_VENDOR_DE_COMPANYID_2@GOTPAGEOFF]
	ldrb	w8, [x8]
	ldr	x9, [x21, #8]
	strb	w8, [x9, #2]
Lloh15:
	adrp	x8, _SFE_VENDOR_OPCODE_LNB_CONTROL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SFE_VENDOR_OPCODE_LNB_CONTROL@GOTPAGEOFF]
	ldrb	w8, [x8]
	ldr	x9, [x21, #8]
	strb	w8, [x9, #3]
	ldr	x8, [x21, #8]
	strb	w26, [x8, #4]
	ldr	x8, [x21, #8]
	strb	w25, [x8, #5]
	cmp	w25, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x8, #0
	and	x9, x25, #0xff
	mov	w25, #6
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #1
	cmp	x8, x9
	b.eq	LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	add	x10, x24, x8, lsl #4
	ldr	w11, [x10]
	ldr	x12, [x21, #8]
	strb	w11, [x12, w25, sxtw]
	add	w25, w25, #1
	ldr	w11, [x10]
	cmp	w11, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x11, #0
	add	x12, x10, #8
	sxtw	x13, w25
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x14, [x12]
	ldr	w14, [x14, x11, lsl #2]
	ldr	x15, [x21, #8]
	add	x15, x15, x13
	strb	w14, [x15, x11]
	add	x11, x11, #1
	ldrsw	x14, [x10]
	cmp	x11, x14
	b.lt	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w25, w25, w11
	b	LBB0_2
LBB0_7:
	mov	w25, #6
LBB0_8:
	ldr	x8, [x21, #8]
	mov	x9, x25
	sxtw	x9, w9
	strb	w23, [x8, x9]
	ldr	x8, [x21, #8]
	add	x8, x9, x8
	add	w1, w25, #2
	strb	w22, [x8, #1]
	mov	x0, x21
	bl	_pad_operands
	add	w0, w25, #5
	mov	w1, #4
	bl	_ALIGN
	str	w0, [x20, #12]
	mov	x0, x20
	bl	_avc_write
	mov	x22, x0
	tbnz	w0, #31, LBB0_11
; %bb.9:
	ldr	x8, [x21]
Lloh17:
	adrp	x9, _AVC_RESPONSE_ACCEPTED@GOTPAGE
Lloh18:
	ldr	x9, [x9, _AVC_RESPONSE_ACCEPTED@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_11
; %bb.10:
	ldr	w0, [x20, #8]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_11:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x22
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_AVC_CTYPE_CONTROL,4,2          ; @AVC_CTYPE_CONTROL
	.comm	_AVC_SUBUNIT_TYPE_TUNER,4,2     ; @AVC_SUBUNIT_TYPE_TUNER
	.comm	_AVC_OPCODE_VENDOR,4,2          ; @AVC_OPCODE_VENDOR
	.comm	_SFE_VENDOR_DE_COMPANYID_0,1,0  ; @SFE_VENDOR_DE_COMPANYID_0
	.comm	_SFE_VENDOR_DE_COMPANYID_1,1,0  ; @SFE_VENDOR_DE_COMPANYID_1
	.comm	_SFE_VENDOR_DE_COMPANYID_2,1,0  ; @SFE_VENDOR_DE_COMPANYID_2
	.comm	_SFE_VENDOR_OPCODE_LNB_CONTROL,1,0 ; @SFE_VENDOR_OPCODE_LNB_CONTROL
	.comm	_AVC_RESPONSE_ACCEPTED,8,3      ; @AVC_RESPONSE_ACCEPTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LNB control failed\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
