	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function af9035_probe
_af9035_probe:                          ## @af9035_probe
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	callq	_interface_to_usbdev
	movq	%rax, %rbx
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	12(%rbx), %esi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	movl	$8, %ecx
	callq	_usb_string
	movl	8(%rbx), %edi
	callq	_le16_to_cpu
	movq	_USB_VID_TERRATEC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.1:
	movl	4(%rbx), %edi
	callq	_le16_to_cpu
	cmpl	$153, %eax
	jne	LBB0_4
## %bb.2:
	movabsq	$29382684973295169, %rax        ## imm = 0x68636574616641
	cmpq	%rax, -48(%rbp)
	je	LBB0_3
LBB0_4:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_dvb_usbv2_probe
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_7
## %bb.6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_dbg
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_VID_TERRATEC,4,2           ## @USB_VID_TERRATEC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Afatech"

L_.str.1:                               ## @.str.1
	.asciz	"rejecting device\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_af9035_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function af9035_probe
_af9035_probe:                          ; @af9035_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	bl	_interface_to_usbdev
	mov	x21, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w1, [x21, #12]
	mov	x2, sp
	mov	x0, x21
	mov	w3, #8
	bl	_usb_string
	ldr	w0, [x21, #8]
	bl	_le16_to_cpu
Lloh3:
	adrp	x8, _USB_VID_TERRATEC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _USB_VID_TERRATEC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.1:
	ldr	w0, [x21, #4]
	bl	_le16_to_cpu
	cmp	w0, #153
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [sp]
	mov	x9, #26177
	movk	x9, #29793, lsl #16
	movk	x9, #25445, lsl #32
	movk	x9, #104, lsl #48
	cmp	x8, x9
	b.eq	LBB0_6
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	bl	_dvb_usbv2_probe
LBB0_4:
	ldr	x8, [sp, #8]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
Lloh11:
	adrp	x8, _ENODEV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_VID_TERRATEC,4,2           ; @USB_VID_TERRATEC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Afatech"

l_.str.1:                               ; @.str.1
	.asciz	"rejecting device\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_af9035_probe
.subsections_via_symbols
