	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max_send_master_cmd
_max_send_master_cmd:                   ## @max_send_master_cmd
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	8(%rax), %rbx
	movq	16(%rbx), %r14
	movq	(%rbx), %rdi
	movq	8(%rbx), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	(%rax), %r15d
	callq	_DDB_LINK_TAG
	movq	(%r14), %rsi
	movq	(%rbx), %rcx
	movl	(%rsi,%rcx,8), %edx
	decl	%edx
	cmpl	$2, %edx
	jb	LBB0_7
## %bb.1:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	andl	$1, %r15d
	shlq	$4, %r15
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %r14
	movq	8(%rax,%r15), %rdx
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	*%rdx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	movq	(%rbx), %rcx
LBB0_3:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	leaq	(%rsi,%rcx,8), %rdi
	addq	$4, %rdi
	callq	_mutex_lock
	leaq	(%r14,%r15), %r12
	movl	(%r14,%r15), %edi
	callq	_LNB_BUF_LEVEL
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	orl	%r14d, %eax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_ddbwritel
	cmpl	$0, (%r13)
	jle	LBB0_6
## %bb.4:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movl	(%rax,%r15,4), %ebx
	movl	(%r12), %edi
	callq	_LNB_BUF_WRITE
	orl	%r14d, %eax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_ddbwritel
	incq	%r15
	movslq	(%r13), %rax
	cmpq	%rax, %r15
	jl	LBB0_5
LBB0_6:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rsi
	movl	(%r12), %edx
	movq	_LNB_CMD_DISEQC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_lnb_command
	movq	(%rbx), %rax
	movq	(%r14), %rcx
	leaq	(%rax,%rcx,8), %rdi
	addq	$4, %rdi
	callq	_mutex_unlock
LBB0_7:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LNB_CMD_DISEQC,4,2             ## @LNB_CMD_DISEQC
	.no_dead_strip	_max_send_master_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max_send_master_cmd
_max_send_master_cmd:                   ; @max_send_master_cmd
	.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	x20, x1
	mov	x22, x0
	ldr	x8, [x0]
	ldr	x23, [x8, #8]
	ldp	x24, x19, [x23, #8]
	ldr	w25, [x8]
	ldr	x0, [x23]
	bl	_DDB_LINK_TAG
	ldr	x8, [x19]
	ldr	x9, [x23]
	lsl	x10, x9, #3
	ldr	w10, [x8, x10]
	sub	w10, w10, #1
	cmp	w10, #2
	b.lo	LBB0_7
; %bb.1:
	mov	x21, x0
	and	x10, x25, #0x1
	add	x24, x24, x10, lsl #4
	ldr	x10, [x24, #8]
	cbz	x10, LBB0_3
; %bb.2:
	mov	x0, x22
	mov	x1, x20
	blr	x10
	ldr	x8, [x19]
	ldr	x9, [x23]
LBB0_3:
	add	x8, x8, x9, lsl #3
	add	x0, x8, #4
	bl	_mutex_lock
	ldr	w0, [x24]
	bl	_LNB_BUF_LEVEL
	orr	w2, w0, w21
	mov	x0, x19
	mov	w1, #0
	bl	_ddbwritel
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x25, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	w22, [x8, x25, lsl #2]
	ldr	w0, [x24]
	bl	_LNB_BUF_WRITE
	orr	w2, w0, w21
	mov	x0, x19
	mov	x1, x22
	bl	_ddbwritel
	add	x25, x25, #1
	ldrsw	x8, [x20]
	cmp	x25, x8
	b.lt	LBB0_5
LBB0_6:
	ldr	x1, [x23]
	ldr	w2, [x24]
Lloh0:
	adrp	x8, _LNB_CMD_DISEQC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LNB_CMD_DISEQC@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_lnb_command
	ldr	x8, [x19]
	ldr	x9, [x23]
	add	x8, x8, x9, lsl #3
	add	x0, x8, #4
	bl	_mutex_unlock
LBB0_7:
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LNB_CMD_DISEQC,4,2             ; @LNB_CMD_DISEQC
	.no_dead_strip	_max_send_master_cmd
.subsections_via_symbols
