	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hso_probe
_hso_probe:                             ## @hso_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	%rdi, %r12
	movq	8(%rdi), %rax
	cmpl	$255, (%rax)
	jne	LBB0_1
## %bb.2:
	movl	4(%rax), %ebx
	movq	(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	testl	%ebx, %ebx
	js	LBB0_9
## %bb.4:
	movq	%rbx, %rcx
	incq	%rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rax,%rdx,4)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	LBB0_6
LBB0_9:
	movslq	%ebx, %rcx
	movl	(%rax,%rcx,4), %r15d
	jmp	LBB0_11
LBB0_1:
	addq	$16, %r12
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	jmp	LBB0_8
LBB0_10:
	movq	%r12, %rdi
	callq	_hso_get_config_data
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_7
LBB0_11:
	cmpl	$2, (%r12)
	jl	LBB0_13
## %bb.12:
	movq	%r12, %rdi
	callq	_interface_to_usbdev
	movl	%eax, %edi
	movl	%ebx, %esi
	movl	$1, %edx
	callq	_usb_set_interface
LBB0_13:
	movl	$1, 4(%r12)
	movq	_HSO_INTF_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r15d, %eax
	cmpl	$129, %eax
	je	LBB0_44
## %bb.14:
	cmpl	$128, %eax
	jne	LBB0_7
## %bb.15:
	movq	_HSO_PORT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r15d, %eax
	movq	_HSO_PORT_NETWORK@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpl	(%rcx), %eax
	jne	LBB0_18
## %bb.16:
	movq	_disable_net@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_18
## %bb.17:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_hso_create_net_device
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_7
LBB0_18:
	leaq	-33(%rbp), %rsi
	movq	%r12, %rdi
	callq	_hso_get_mux_ports
	testl	%eax, %eax
	jne	LBB0_7
## %bb.19:
	movq	%r12, %rdi
	callq	_hso_create_shared_int
	testq	%rax, %rax
	je	LBB0_7
## %bb.20:
	movq	%rax, %r15
	movzbl	-33(%rbp), %ecx
	movq	%r14, %rax
	testb	$1, %cl
	je	LBB0_23
## %bb.21:
	movq	%r12, %rdi
	movl	$1, %esi
	movq	%r15, %rdx
	callq	_hso_create_mux_serial_device
	testq	%rax, %rax
	je	LBB0_7
## %bb.22:
	movzbl	-33(%rbp), %ecx
LBB0_23:
	testb	$2, %cl
	je	LBB0_26
## %bb.24:
	movq	%r12, %rdi
	movl	$2, %esi
	movq	%r15, %rdx
	callq	_hso_create_mux_serial_device
	testq	%rax, %rax
	je	LBB0_7
## %bb.25:
	movzbl	-33(%rbp), %ecx
LBB0_26:
	testb	$4, %cl
	je	LBB0_29
## %bb.27:
	movq	%r12, %rdi
	movl	$4, %esi
	movq	%r15, %rdx
	callq	_hso_create_mux_serial_device
	testq	%rax, %rax
	je	LBB0_7
## %bb.28:
	movzbl	-33(%rbp), %ecx
LBB0_29:
	testb	$8, %cl
	je	LBB0_32
## %bb.30:
	movq	%r12, %rdi
	movl	$8, %esi
	movq	%r15, %rdx
	callq	_hso_create_mux_serial_device
	testq	%rax, %rax
	je	LBB0_7
## %bb.31:
	movzbl	-33(%rbp), %ecx
LBB0_32:
	testb	$16, %cl
	je	LBB0_35
## %bb.33:
	movq	%r12, %rdi
	movl	$16, %esi
	movq	%r15, %rdx
	callq	_hso_create_mux_serial_device
	testq	%rax, %rax
	je	LBB0_7
## %bb.34:
	movzbl	-33(%rbp), %ecx
LBB0_35:
	testb	$32, %cl
	je	LBB0_38
## %bb.36:
	movq	%r12, %rdi
	movl	$32, %esi
	movq	%r15, %rdx
	callq	_hso_create_mux_serial_device
	testq	%rax, %rax
	je	LBB0_7
## %bb.37:
	movzbl	-33(%rbp), %ecx
LBB0_38:
	testb	$64, %cl
	je	LBB0_41
## %bb.39:
	movq	%r12, %rdi
	movl	$64, %esi
	movq	%r15, %rdx
	callq	_hso_create_mux_serial_device
	testq	%rax, %rax
	je	LBB0_7
## %bb.40:
	movzbl	-33(%rbp), %ecx
LBB0_41:
	testb	$-128, %cl
	je	LBB0_43
## %bb.42:
	movq	%r12, %rdi
	movl	$128, %esi
	movq	%r15, %rdx
	callq	_hso_create_mux_serial_device
	testq	%rax, %rax
	je	LBB0_7
LBB0_43:
	testq	%r14, %r14
	cmovneq	%r14, %rax
	jmp	LBB0_49
LBB0_44:
	movq	_HSO_PORT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r15d, %eax
	movq	_HSO_PORT_NETWORK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_47
## %bb.45:
	movq	_disable_net@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_7
## %bb.46:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_hso_create_net_device
	jmp	LBB0_48
LBB0_47:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_hso_create_bulk_serial_device
LBB0_48:
	testq	%rax, %rax
	je	LBB0_7
LBB0_49:
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_usb_set_intfdata
	xorl	%eax, %eax
	jmp	LBB0_50
LBB0_7:
	movq	%r12, %rdi
	callq	_hso_free_interface
LBB0_8:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_50:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Not our interface\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_HSO_INTF_MASK,4,2              ## @HSO_INTF_MASK
	.comm	_HSO_PORT_MASK,4,2              ## @HSO_PORT_MASK
	.comm	_HSO_PORT_NETWORK,4,2           ## @HSO_PORT_NETWORK
	.comm	_disable_net,4,2                ## @disable_net
	.no_dead_strip	_hso_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hso_probe
_hso_probe:                             ; @hso_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, x0
	ldr	x8, [x0, #8]
	ldr	w9, [x8]
	cmp	w9, #255
	b.ne	LBB0_7
; %bb.1:
	ldr	w9, [x8, #4]
	sxtw	x21, w9
	ldr	x8, [x1]
	cbz	x8, LBB0_8
; %bb.2:
	tbnz	w9, #31, LBB0_6
; %bb.3:
	add	x9, x9, #1
	mov	x10, x8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10]
	cbz	w11, LBB0_48
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x10, #4
	subs	x9, x9, #1
	b.ne	LBB0_4
LBB0_6:
	ldr	w20, [x8, x21, lsl #2]
	b	LBB0_9
LBB0_7:
	add	x0, x19, #16
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_49
LBB0_8:
	mov	x0, x19
	bl	_hso_get_config_data
	mov	x20, x0
	tbnz	w0, #31, LBB0_48
LBB0_9:
	ldr	w8, [x19]
	cmp	w8, #2
	b.lt	LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_interface_to_usbdev
	mov	x1, x21
	mov	w2, #1
	bl	_usb_set_interface
LBB0_11:
	mov	w8, #1
	str	w8, [x19, #4]
Lloh2:
	adrp	x8, _HSO_INTF_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HSO_INTF_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	and	w8, w8, w20
	cmp	w8, #129
	b.eq	LBB0_15
; %bb.12:
	cmp	w8, #128
	b.ne	LBB0_48
; %bb.13:
Lloh5:
	adrp	x8, _HSO_PORT_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HSO_PORT_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	and	w8, w8, w20
Lloh8:
	adrp	x9, _HSO_PORT_NETWORK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HSO_PORT_NETWORK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _disable_net@GOTPAGE
Lloh12:
	ldr	x10, [x10, _disable_net@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w10, #0, #0, eq
	b.eq	LBB0_18
; %bb.14:
	mov	x20, #0
	b	LBB0_19
LBB0_15:
Lloh14:
	adrp	x8, _HSO_PORT_MASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HSO_PORT_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	and	w8, w8, w20
Lloh17:
	adrp	x9, _HSO_PORT_NETWORK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _HSO_PORT_NETWORK@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_45
; %bb.16:
Lloh20:
	adrp	x8, _disable_net@GOTPAGE
Lloh21:
	ldr	x8, [x8, _disable_net@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cbnz	w8, LBB0_48
; %bb.17:
	mov	x0, x19
	mov	x1, x20
	bl	_hso_create_net_device
	b	LBB0_46
LBB0_18:
	mov	x0, x19
	mov	x1, x20
	bl	_hso_create_net_device
	mov	x20, x0
	cbz	x0, LBB0_48
LBB0_19:
	add	x1, sp, #15
	mov	x0, x19
	bl	_hso_get_mux_ports
	cbnz	w0, LBB0_48
; %bb.20:
	mov	x0, x19
	bl	_hso_create_shared_int
	cbz	x0, LBB0_48
; %bb.21:
	mov	x21, x0
	ldrb	w8, [sp, #15]
	mov	x0, x20
	tbz	w8, #0, LBB0_24
; %bb.22:
	mov	x0, x19
	mov	w1, #1
	mov	x2, x21
	bl	_hso_create_mux_serial_device
	cbz	x0, LBB0_48
; %bb.23:
	ldrb	w8, [sp, #15]
LBB0_24:
	tbz	w8, #1, LBB0_27
; %bb.25:
	mov	x0, x19
	mov	w1, #2
	mov	x2, x21
	bl	_hso_create_mux_serial_device
	cbz	x0, LBB0_48
; %bb.26:
	ldrb	w8, [sp, #15]
LBB0_27:
	tbz	w8, #2, LBB0_30
; %bb.28:
	mov	x0, x19
	mov	w1, #4
	mov	x2, x21
	bl	_hso_create_mux_serial_device
	cbz	x0, LBB0_48
; %bb.29:
	ldrb	w8, [sp, #15]
LBB0_30:
	tbz	w8, #3, LBB0_33
; %bb.31:
	mov	x0, x19
	mov	w1, #8
	mov	x2, x21
	bl	_hso_create_mux_serial_device
	cbz	x0, LBB0_48
; %bb.32:
	ldrb	w8, [sp, #15]
LBB0_33:
	tbz	w8, #4, LBB0_36
; %bb.34:
	mov	x0, x19
	mov	w1, #16
	mov	x2, x21
	bl	_hso_create_mux_serial_device
	cbz	x0, LBB0_48
; %bb.35:
	ldrb	w8, [sp, #15]
LBB0_36:
	tbz	w8, #5, LBB0_39
; %bb.37:
	mov	x0, x19
	mov	w1, #32
	mov	x2, x21
	bl	_hso_create_mux_serial_device
	cbz	x0, LBB0_48
; %bb.38:
	ldrb	w8, [sp, #15]
LBB0_39:
	tbz	w8, #6, LBB0_42
; %bb.40:
	mov	x0, x19
	mov	w1, #64
	mov	x2, x21
	bl	_hso_create_mux_serial_device
	cbz	x0, LBB0_48
; %bb.41:
	ldrb	w8, [sp, #15]
LBB0_42:
	tbz	w8, #7, LBB0_44
; %bb.43:
	mov	x0, x19
	mov	w1, #128
	mov	x2, x21
	bl	_hso_create_mux_serial_device
	cbz	x0, LBB0_48
LBB0_44:
	cmp	x20, #0
	csel	x1, x0, x20, eq
	b	LBB0_47
LBB0_45:
	mov	x0, x19
	mov	x1, x20
	bl	_hso_create_bulk_serial_device
LBB0_46:
	mov	x1, x0
	cbz	x0, LBB0_48
LBB0_47:
	mov	x0, x19
	bl	_usb_set_intfdata
	mov	w0, #0
	b	LBB0_50
LBB0_48:
	mov	x0, x19
	bl	_hso_free_interface
LBB0_49:
Lloh23:
	adrp	x8, _ENODEV@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_50:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Not our interface\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_HSO_INTF_MASK,4,2              ; @HSO_INTF_MASK
	.comm	_HSO_PORT_MASK,4,2              ; @HSO_PORT_MASK
	.comm	_HSO_PORT_NETWORK,4,2           ; @HSO_PORT_NETWORK
	.comm	_disable_net,4,2                ; @disable_net
	.no_dead_strip	_hso_probe
.subsections_via_symbols
