	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsusb1_detectmode
_smsusb1_detectmode:                    ## @smsusb1_detectmode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	movq	_DEVICE_MODE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsi)
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	$1, (%r14)
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
	leaq	L_.str(%rip), %rbx
	jmp	LBB0_10
LBB0_4:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	$4, (%r14)
	jmp	LBB0_10
LBB0_6:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	$0, (%r14)
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	$2, (%r14)
LBB0_10:
	movl	(%r14), %esi
	leaq	L_.str.6(%rip), %rdi
	movq	%rbx, %rdx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_pr_debug                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DEVICE_MODE_NONE,4,2           ## @DEVICE_MODE_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"none"

L_.str.1:                               ## @.str.1
	.asciz	"product string not found\n"

L_.str.2:                               ## @.str.2
	.asciz	"DVBH"

L_.str.3:                               ## @.str.3
	.asciz	"BDA"

L_.str.4:                               ## @.str.4
	.asciz	"DVBT"

L_.str.5:                               ## @.str.5
	.asciz	"TDMB"

L_.str.6:                               ## @.str.6
	.asciz	"%d \"%s\"\n"

	.no_dead_strip	_smsusb1_detectmode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsusb1_detectmode
_smsusb1_detectmode:                    ; @smsusb1_detectmode
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	x8, [x0]
	ldr	x20, [x8]
Lloh0:
	adrp	x8, _DEVICE_MODE_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEVICE_MODE_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x1]
	cbz	x20, LBB0_3
; %bb.1:
Lloh3:
	adrp	x1, l_.str.2@PAGE
Lloh4:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_strstr
	cbz	x0, LBB0_4
; %bb.2:
	mov	w8, #1
	b	LBB0_6
LBB0_3:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
Lloh7:
	adrp	x20, l_.str@PAGE
Lloh8:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_7
LBB0_4:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_strstr
	cbz	x0, LBB0_8
; %bb.5:
	mov	w8, #4
LBB0_6:
	str	w8, [x19]
LBB0_7:
	ldr	w1, [x19]
Lloh11:
	adrp	x0, l_.str.6@PAGE
Lloh12:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x2, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pr_debug
LBB0_8:
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_strstr
	cbz	x0, LBB0_10
; %bb.9:
	str	wzr, [x19]
	b	LBB0_7
LBB0_10:
Lloh15:
	adrp	x1, l_.str.5@PAGE
Lloh16:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_strstr
	cbz	x0, LBB0_7
; %bb.11:
	mov	w8, #2
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_DEVICE_MODE_NONE,4,2           ; @DEVICE_MODE_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"none"

l_.str.1:                               ; @.str.1
	.asciz	"product string not found\n"

l_.str.2:                               ; @.str.2
	.asciz	"DVBH"

l_.str.3:                               ; @.str.3
	.asciz	"BDA"

l_.str.4:                               ; @.str.4
	.asciz	"DVBT"

l_.str.5:                               ; @.str.5
	.asciz	"TDMB"

l_.str.6:                               ; @.str.6
	.asciz	"%d \"%s\"\n"

	.no_dead_strip	_smsusb1_detectmode
.subsections_via_symbols
