	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m88ds3103_diseqc_send_burst
_m88ds3103_diseqc_send_burst:           ## @m88ds3103_diseqc_send_burst
	.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
	movl	%esi, %r12d
	movq	(%rdi), %r15
	movq	24(%r15), %r14
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	cmpl	$0, 16(%r15)
	je	LBB0_1
## %bb.2:
	movq	8(%r15), %rax
	movl	(%rax), %ecx
	shll	$5, %ecx
	movl	%ecx, -44(%rbp)
	movq	%r15, %rdi
	movl	$162, %esi
	movl	$224, %edx
	callq	_m88ds3103_update_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_21
## %bb.3:
	cmpl	$129, %r12d
	je	LBB0_4
## %bb.5:
	cmpl	$128, %r12d
	jne	LBB0_23
## %bb.6:
	movl	$1, %edx
	jmp	LBB0_7
LBB0_1:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
LBB0_20:
	subl	(%rax), %ebx
LBB0_21:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_22:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	$2, %edx
LBB0_7:
	movl	(%r15), %edi
	movl	$161, %esi
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_21
## %bb.8:
	movq	_jiffies@GOTPCREL(%rip), %r13
	movq	(%r13), %rbx
	movl	$40, %edi
	callq	_msecs_to_jiffies
	movq	%rax, %r12
	addq	%rbx, %r12
	movl	$8500, %edi                     ## imm = 0x2134
	movl	$12500, %esi                    ## imm = 0x30D4
	callq	_usleep_range
	movl	$1, -44(%rbp)
	movq	(%r13), %rdi
	movq	%r12, %rsi
	callq	_time_after
	testl	%eax, %eax
	je	LBB0_9
LBB0_16:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	%r15, %rdi
	movl	$161, %esi
	movl	$192, %edx
	movl	$64, %ecx
	callq	_m88ds3103_update_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_21
	jmp	LBB0_17
LBB0_23:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_9:
	leaq	-44(%rbp), %r13
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movl	$161, %esi
	movq	%r13, %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	-44(%rbp), %eax
	shrl	$6, %eax
	andl	$1, %eax
	movl	%eax, -44(%rbp)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r12, %rsi
	callq	_time_after
	movl	-44(%rbp), %ecx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	testl	%ecx, %ecx
	jne	LBB0_10
LBB0_14:
	testl	%ecx, %ecx
	jne	LBB0_16
## %bb.15:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_jiffies_to_msecs
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_jiffies_to_msecs
	subl	%eax, %ebx
	addl	$40, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_17:
	movq	%r15, %rdi
	movl	$162, %esi
	movl	$192, %edx
	movl	$128, %ecx
	callq	_m88ds3103_update_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_21
## %bb.18:
	xorl	%ebx, %ebx
	cmpl	$1, -44(%rbp)
	jne	LBB0_22
## %bb.19:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_20
LBB0_11:
	movl	%eax, %ebx
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fe_sec_mini_cmd=%d\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
L_.str.1:                               ## @.str.1
	.asciz	"invalid fe_sec_mini_cmd\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_jiffies,8,3                    ## @jiffies
L_.str.2:                               ## @.str.2
	.asciz	"diseqc tx took %u ms\n"

L_.str.3:                               ## @.str.3
	.asciz	"diseqc tx timeout\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
L_.str.4:                               ## @.str.4
	.asciz	"failed=%d\n"

	.comm	_SEND_BURST_TIMEOUT,4,2         ## @SEND_BURST_TIMEOUT
	.no_dead_strip	_m88ds3103_diseqc_send_burst
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function m88ds3103_diseqc_send_burst
_m88ds3103_diseqc_send_burst:           ; @m88ds3103_diseqc_send_burst
	.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	x21, x1
	ldr	x20, [x0]
	ldr	x19, [x20, #24]
	str	x21, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	w8, [x20, #16]
	cbz	w8, LBB0_5
; %bb.1:
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	lsl	w3, w8, #5
	str	w3, [sp, #12]
	mov	x0, x20
	mov	w1, #162
	mov	w2, #224
	bl	_m88ds3103_update_bits
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.2:
	cmp	w21, #129
	b.eq	LBB0_9
; %bb.3:
	cmp	w21, #128
	b.ne	LBB0_16
; %bb.4:
	mov	w2, #1
	b	LBB0_10
LBB0_5:
Lloh2:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	str	x22, [sp]
Lloh4:
	adrp	x1, l_.str.4@PAGE
Lloh5:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
LBB0_8:
	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
	add	sp, sp, #80
	ret
LBB0_9:
	mov	w2, #2
LBB0_10:
	ldr	w0, [x20]
	mov	w1, #161
	bl	_regmap_write
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.11:
Lloh6:
	adrp	x23, _jiffies@GOTPAGE
Lloh7:
	ldr	x23, [x23, _jiffies@GOTPAGEOFF]
	ldr	x21, [x23]
	mov	w0, #40
	bl	_msecs_to_jiffies
	add	x21, x0, x21
	mov	w0, #8500
	mov	w1, #12500
	bl	_usleep_range
	mov	w8, #1
	str	w8, [sp, #12]
	ldr	x0, [x23]
	mov	x1, x21
	bl	_time_after
	cbz	w0, LBB0_14
LBB0_12:
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	mov	x0, x20
	mov	w1, #161
	mov	w2, #192
	mov	w3, #64
	bl	_m88ds3103_update_bits
	mov	x22, x0
	cbnz	w0, LBB0_7
	b	LBB0_19
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w8, [sp, #12]
	ubfx	w8, w8, #6, #1
	str	w8, [sp, #12]
	ldr	x0, [x23]
	mov	x1, x21
	bl	_time_after
	ldr	w8, [sp, #12]
	cmp	w0, #0
	ccmp	w8, #0, #4, eq
	b.eq	LBB0_17
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	add	x2, sp, #12
	mov	w1, #161
	bl	_regmap_read
	cbz	w0, LBB0_13
; %bb.15:
	mov	x22, x0
	b	LBB0_7
LBB0_16:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_17:
	cbnz	w8, LBB0_12
; %bb.18:
	ldr	x0, [x23]
	bl	_jiffies_to_msecs
	mov	x22, x0
	mov	x0, x21
	bl	_jiffies_to_msecs
	sub	w8, w22, w0
	add	w8, w8, #40
	str	x8, [sp]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
LBB0_19:
	mov	x0, x20
	mov	w1, #162
	mov	w2, #192
	mov	w3, #128
	bl	_m88ds3103_update_bits
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.20:
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.ne	LBB0_22
; %bb.21:
Lloh16:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_6
LBB0_22:
	mov	w22, #0
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fe_sec_mini_cmd=%d\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
l_.str.1:                               ; @.str.1
	.asciz	"invalid fe_sec_mini_cmd\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_jiffies,8,3                    ; @jiffies
l_.str.2:                               ; @.str.2
	.asciz	"diseqc tx took %u ms\n"

l_.str.3:                               ; @.str.3
	.asciz	"diseqc tx timeout\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
l_.str.4:                               ; @.str.4
	.asciz	"failed=%d\n"

	.comm	_SEND_BURST_TIMEOUT,4,2         ; @SEND_BURST_TIMEOUT
	.no_dead_strip	_m88ds3103_diseqc_send_burst
.subsections_via_symbols
