	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function friio_probe
_friio_probe:                           ## @friio_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	movq	_GL861_ALTSETTING_COUNT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movq	_FRIIO_BULK_ALTSETTING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_usb_altnum_to_altsetting
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_interface_to_usbdev
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movl	%eax, %edi
	callq	_usb_set_interface
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	_deb_rc
	jmp	LBB0_8
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_deb_rc
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_adapter_nr@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_friio_properties@GOTPCREL(%rip), %rsi
	leaq	-24(%rbp), %rcx
	movq	%r14, %rdi
	callq	_dvb_usb_device_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	-24(%rbp), %rax
	movq	(%rax), %rdi
	movl	$1, %esi
	callq	_friio_streaming_ctrl
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_GL861_ALTSETTING_COUNT,8,3     ## @GL861_ALTSETTING_COUNT
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_FRIIO_BULK_ALTSETTING,4,2      ## @FRIIO_BULK_ALTSETTING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"not alt found!\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to set alt-setting!\n"

	.comm	_friio_properties,4,2           ## @friio_properties
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_adapter_nr,4,2                 ## @adapter_nr
	.no_dead_strip	_friio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function friio_probe
_friio_probe:                           ; @friio_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _GL861_ALTSETTING_COUNT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GL861_ALTSETTING_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_5
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _FRIIO_BULK_ALTSETTING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FRIIO_BULK_ALTSETTING@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_usb_altnum_to_altsetting
	cbz	x0, LBB0_4
; %bb.2:
	mov	x20, x0
	mov	x0, x19
	bl	_interface_to_usbdev
	ldp	w2, w1, [x20]
	bl	_usb_set_interface
	cbz	w0, LBB0_7
; %bb.3:
	mov	x20, x0
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_deb_rc
	b	LBB0_6
LBB0_4:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_deb_rc
LBB0_5:
Lloh10:
	adrp	x8, _ENODEV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
Lloh13:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x8, _adapter_nr@GOTPAGE
Lloh17:
	ldr	x8, [x8, _adapter_nr@GOTPAGEOFF]
Lloh18:
	ldr	w4, [x8]
Lloh19:
	adrp	x1, _friio_properties@GOTPAGE
Lloh20:
	ldr	x1, [x1, _friio_properties@GOTPAGEOFF]
	add	x3, sp, #8
	mov	x0, x19
	bl	_dvb_usb_device_init
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.8:
	ldr	x8, [sp, #8]
	ldr	x0, [x8]
	mov	w1, #1
	bl	_friio_streaming_ctrl
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GL861_ALTSETTING_COUNT,8,3     ; @GL861_ALTSETTING_COUNT
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_FRIIO_BULK_ALTSETTING,4,2      ; @FRIIO_BULK_ALTSETTING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"not alt found!\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to set alt-setting!\n"

	.comm	_friio_properties,4,2           ; @friio_properties
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_adapter_nr,4,2                 ; @adapter_nr
	.no_dead_strip	_friio_probe
.subsections_via_symbols
