	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dst_get_device_id
_dst_get_device_id:                     ## @dst_get_device_id
	.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	%rdi, %r12
	movl	$0, (%rdi)
	leaq	_dst_get_device_id.device_type(%rip), %rbx
	movq	%rbx, %rdi
	movl	$7, %esi
	callq	_dst_check_sum
	movl	%eax, _dst_get_device_id.device_type+28(%rip)
	movq	_FIXED_COMM@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_write_dst
	movl	$-1, %ebx
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r12, %rdi
	callq	_dst_pio_disable
	testq	%rax, %rax
	js	LBB0_1
## %bb.3:
	movq	_GET_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-52(%rbp), %rsi
	movq	%r12, %rdi
	callq	_read_dst
	testq	%rax, %rax
	jne	LBB0_1
## %bb.4:
	movl	-52(%rbp), %edx
	movq	_ACK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jne	LBB0_12
## %bb.5:
	movq	_DEVICE_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_dst_wait_dst_ready
	testl	%eax, %eax
	je	LBB0_1
## %bb.6:
	movq	8(%r12), %rsi
	movl	(%r14), %edx
	movq	%r12, %rdi
	callq	_read_dst
	testq	%rax, %rax
	jne	LBB0_1
## %bb.7:
	movq	%r12, %rdi
	callq	_dst_pio_disable
	movq	8(%r12), %rdi
	movl	28(%rdi), %r14d
	movl	$7, %esi
	callq	_dst_check_sum
	cmpl	%eax, %r14d
	jne	LBB0_13
## %bb.8:
	movq	8(%r12), %rax
	movl	$0, 28(%rax)
	movq	_dst_tlist@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_14
## %bb.9:
	addq	$28, %r14
	xorl	%r13d, %r13d
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	-28(%r14), %rbx
	movq	-20(%r14), %r15
	shlq	$2, %rbx
	addq	8(%r12), %rbx
	movq	%r15, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	incl	%r13d
	movq	_dst_tlist@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	addq	$32, %r14
	cmpl	%eax, %r13d
	jl	LBB0_10
	jmp	LBB0_15
LBB0_12:
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	callq	_dprintk
	jmp	LBB0_1
LBB0_13:
	leaq	L_.str.1(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	callq	_dprintk
	jmp	LBB0_1
LBB0_14:
	xorl	%r13d, %r13d
LBB0_15:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_31
LBB0_16:
	movl	(%r14), %ebx
	movl	-12(%r14), %r15d
	movl	-4(%r14), %eax
	movl	%eax, 28(%r12)
	movq	-20(%r14), %rsi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	movl	24(%r12), %edi
	movq	-20(%r14), %rsi
	movl	$4, %edx
	callq	_strscpy
	movl	-8(%r14), %eax
	movq	_TUNER_TYPE_MULTI@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_22
## %bb.17:
	cmpl	$128, %r15d
	jne	LBB0_20
## %bb.18:
	movq	%r12, %rdi
	callq	_dst_check_stv0299
	testl	%eax, %eax
	jns	LBB0_20
## %bb.19:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	movq	_TUNER_TYPE_MB86A15@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
LBB0_20:
	movq	%r12, %rdi
	callq	_dst_check_mb86a15
	testq	%rax, %rax
	jns	LBB0_23
## %bb.21:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_23
LBB0_22:
	movl	%eax, (%r12)
LBB0_23:
	movq	_tuner_list@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_30
## %bb.24:
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	addq	$12, %rbx
	xorl	%r15d, %r15d
	jmp	LBB0_26
LBB0_25:                                ##   in Loop: Header=BB0_26 Depth=1
	incl	%r15d
	movq	_tuner_list@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	addq	$16, %rbx
	cmpl	%eax, %r15d
	jge	LBB0_29
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movq	-20(%r14), %rdi
	movq	-12(%rbx), %rsi
	movl	$7, %edx
	callq	_strncmp
	testl	%eax, %eax
	jne	LBB0_25
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=1
	movl	-4(%rbx), %eax
	cmpl	(%r12), %eax
	jne	LBB0_25
## %bb.28:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	-20(%r14), %rsi
	movl	(%rbx), %edx
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_25
LBB0_29:
	movl	-48(%rbp), %r15d                ## 4-byte Reload
LBB0_30:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_31:
	movq	_dst_tlist@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r13d
	jl	LBB0_33
## %bb.32:
	movq	8(%r12), %rsi
	leaq	4(%rsi), %rdx
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	movq	_DST_TYPE_HAS_SYMDIV@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$128, %r15d
LBB0_33:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_dst_type_print
	movl	%ebx, 20(%r12)
	movl	%r15d, 16(%r12)
	movq	%r12, %rdi
	callq	_dst_type_flags_print
	xorl	%ebx, %ebx
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	4                               ## @dst_get_device_id.device_type
_dst_get_device_id.device_type:
	.long	0                               ## 0x0
	.long	6                               ## 0x6
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	255                             ## 0xff

	.comm	_FIXED_COMM,4,2                 ## @FIXED_COMM
	.comm	_GET_ACK,4,2                    ## @GET_ACK
	.comm	_ACK,4,2                        ## @ACK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Write not Acknowledged! [Reply=0x%02x]\n"

	.comm	_DEVICE_INIT,4,2                ## @DEVICE_INIT
L_.str.1:                               ## @.str.1
	.asciz	"Checksum failure!\n"

	.comm	_dst_tlist,8,3                  ## @dst_tlist
L_.str.2:                               ## @.str.2
	.asciz	"Recognise [%s]\n"

	.comm	_TUNER_TYPE_MULTI,4,2           ## @TUNER_TYPE_MULTI
L_.str.3:                               ## @.str.3
	.asciz	"Unsupported\n"

	.comm	_TUNER_TYPE_MB86A15,4,2         ## @TUNER_TYPE_MB86A15
	.comm	_tuner_list,8,3                 ## @tuner_list
L_.str.4:                               ## @.str.4
	.asciz	"[%s] has a [%s]\n"

L_.str.5:                               ## @.str.5
	.asciz	"Unable to recognize %s or %s\n"

L_.str.6:                               ## @.str.6
	.asciz	"please email linux-dvb@linuxtv.org with this type in"

	.comm	_DST_TYPE_HAS_SYMDIV,4,2        ## @DST_TYPE_HAS_SYMDIV
	.no_dead_strip	_dst_get_device_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dst_get_device_id
_dst_get_device_id:                     ; @dst_get_device_id
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	str	wzr, [x0]
Lloh0:
	adrp	x20, _dst_get_device_id.device_type@PAGE
Lloh1:
	add	x20, x20, _dst_get_device_id.device_type@PAGEOFF
	mov	x0, x20
	mov	w1, #7
	bl	_dst_check_sum
	str	w0, [x20, #28]
Lloh2:
	adrp	x21, _FIXED_COMM@GOTPAGE
Lloh3:
	ldr	x21, [x21, _FIXED_COMM@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_write_dst
	cbz	x0, LBB0_3
LBB0_1:
	mov	w0, #-1
LBB0_2:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_3:
	mov	x0, x19
	bl	_dst_pio_disable
	tbnz	x0, #63, LBB0_1
; %bb.4:
Lloh4:
	adrp	x8, _GET_ACK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GET_ACK@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	add	x1, sp, #28
	mov	x0, x19
	bl	_read_dst
	cbnz	x0, LBB0_1
; %bb.5:
	ldr	w8, [sp, #28]
Lloh7:
	adrp	x9, _ACK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ACK@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.6:
Lloh10:
	adrp	x8, _DEVICE_INIT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DEVICE_INIT@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dst_wait_dst_ready
	cbz	w0, LBB0_1
; %bb.7:
	ldr	x1, [x19, #8]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_read_dst
	cbnz	x0, LBB0_1
; %bb.8:
	mov	x0, x19
	bl	_dst_pio_disable
	ldr	x0, [x19, #8]
	ldr	w20, [x0, #28]
	mov	w1, #7
	bl	_dst_check_sum
	cmp	w20, w0
	b.ne	LBB0_15
; %bb.9:
	ldr	x8, [x19, #8]
	str	wzr, [x8, #28]
Lloh13:
	adrp	x22, _dst_tlist@GOTPAGE
Lloh14:
	ldr	x22, [x22, _dst_tlist@GOTPAGEOFF]
	ldr	x20, [x22]
	mov	x0, x20
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_16
; %bb.10:
	mov	w23, #0
	add	x24, x20, #16
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldp	x9, x20, [x24, #-16]
	add	x21, x8, x9, lsl #2
	mov	x0, x20
	bl	_strlen
	mov	x2, x0
	mov	x0, x21
	mov	x1, x20
	bl	_strncmp
	cbz	w0, LBB0_21
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	w23, w23, #1
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	add	x24, x24, #32
	cmp	w23, w0
	b.lt	LBB0_11
	b	LBB0_17
LBB0_13:
	str	x8, [sp]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
LBB0_14:
	mov	w0, #2
	bl	_dprintk
	b	LBB0_1
LBB0_15:
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_16:
	mov	w23, #0
LBB0_17:
	mov	w20, #0
	mov	w25, #0
LBB0_18:
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w23, w0
	b.lt	LBB0_20
; %bb.19:
	ldr	x8, [x19, #8]
	add	x9, x8, #4
	stp	x8, x9, [sp]
Lloh19:
	adrp	x0, l_.str.5@PAGE
Lloh20:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_pr_err
Lloh21:
	adrp	x0, l_.str.6@PAGE
Lloh22:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_pr_err
Lloh23:
	adrp	x8, _DST_TYPE_HAS_SYMDIV@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DST_TYPE_HAS_SYMDIV@GOTPAGEOFF]
Lloh25:
	ldr	w25, [x8]
	mov	w20, #128
LBB0_20:
	mov	x0, x19
	mov	x1, x20
	bl	_dst_type_print
	stp	w20, w25, [x19, #16]
	mov	x0, x19
	bl	_dst_type_flags_print
	mov	w0, #0
	b	LBB0_2
LBB0_21:
	ldr	w20, [x24]
	ldp	w8, w25, [x24, #8]
	str	w8, [x19, #28]
	ldur	x8, [x24, #-8]
	str	x8, [sp]
Lloh26:
	adrp	x0, l_.str.2@PAGE
Lloh27:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
	ldr	w0, [x19, #24]
	ldur	x1, [x24, #-8]
	mov	w2, #4
	bl	_strscpy
	ldr	w8, [x24, #4]
Lloh28:
	adrp	x9, _TUNER_TYPE_MULTI@GOTPAGE
Lloh29:
	ldr	x9, [x9, _TUNER_TYPE_MULTI@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_27
; %bb.22:
	cmp	w20, #128
	b.ne	LBB0_25
; %bb.23:
	mov	x0, x19
	bl	_dst_check_stv0299
	tbz	w0, #31, LBB0_25
; %bb.24:
Lloh31:
	adrp	x0, l_.str.3@PAGE
Lloh32:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_err
Lloh33:
	adrp	x8, _TUNER_TYPE_MB86A15@GOTPAGE
Lloh34:
	ldr	x8, [x8, _TUNER_TYPE_MB86A15@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_25:
	mov	x0, x19
	bl	_dst_check_mb86a15
	tbz	x0, #63, LBB0_28
; %bb.26:
Lloh36:
	adrp	x0, l_.str.3@PAGE
Lloh37:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_err
	b	LBB0_28
LBB0_27:
	str	w8, [x19]
LBB0_28:
Lloh38:
	adrp	x26, _tuner_list@GOTPAGE
Lloh39:
	ldr	x26, [x26, _tuner_list@GOTPAGEOFF]
	ldr	x21, [x26]
	mov	x0, x21
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_18
; %bb.29:
	mov	w27, #0
	add	x28, x21, #12
Lloh40:
	adrp	x21, l_.str.4@PAGE
Lloh41:
	add	x21, x21, l_.str.4@PAGEOFF
	b	LBB0_31
LBB0_30:                                ;   in Loop: Header=BB0_31 Depth=1
	add	w27, w27, #1
	ldr	x0, [x26]
	bl	_ARRAY_SIZE
	add	x28, x28, #16
	cmp	w27, w0
	b.ge	LBB0_18
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	ldur	x0, [x24, #-8]
	ldur	x1, [x28, #-12]
	mov	w2, #7
	bl	_strncmp
	cbnz	w0, LBB0_30
; %bb.32:                               ;   in Loop: Header=BB0_31 Depth=1
	ldur	w8, [x28, #-4]
	ldr	w9, [x19]
	cmp	w8, w9
	b.ne	LBB0_30
; %bb.33:                               ;   in Loop: Header=BB0_31 Depth=1
	ldur	x8, [x24, #-8]
	ldr	w9, [x28]
	stp	x8, x9, [sp]
	mov	x0, x21
	bl	_pr_err
	b	LBB0_30
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @dst_get_device_id.device_type
_dst_get_device_id.device_type:
	.long	0                               ; 0x0
	.long	6                               ; 0x6
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	255                             ; 0xff

	.comm	_FIXED_COMM,4,2                 ; @FIXED_COMM
	.comm	_GET_ACK,4,2                    ; @GET_ACK
	.comm	_ACK,4,2                        ; @ACK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Write not Acknowledged! [Reply=0x%02x]\n"

	.comm	_DEVICE_INIT,4,2                ; @DEVICE_INIT
l_.str.1:                               ; @.str.1
	.asciz	"Checksum failure!\n"

	.comm	_dst_tlist,8,3                  ; @dst_tlist
l_.str.2:                               ; @.str.2
	.asciz	"Recognise [%s]\n"

	.comm	_TUNER_TYPE_MULTI,4,2           ; @TUNER_TYPE_MULTI
l_.str.3:                               ; @.str.3
	.asciz	"Unsupported\n"

	.comm	_TUNER_TYPE_MB86A15,4,2         ; @TUNER_TYPE_MB86A15
	.comm	_tuner_list,8,3                 ; @tuner_list
l_.str.4:                               ; @.str.4
	.asciz	"[%s] has a [%s]\n"

l_.str.5:                               ; @.str.5
	.asciz	"Unable to recognize %s or %s\n"

l_.str.6:                               ; @.str.6
	.asciz	"please email linux-dvb@linuxtv.org with this type in"

	.comm	_DST_TYPE_HAS_SYMDIV,4,2        ; @DST_TYPE_HAS_SYMDIV
	.no_dead_strip	_dst_get_device_id
.subsections_via_symbols
