	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usbpn_probe
_usbpn_probe:                           ## @usbpn_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_interface_to_usbdev
	movq	%rax, %r14
	movq	8(%rbx), %rax
	movq	24(%rax), %rdx
	movl	(%rax), %ecx
	leaq	-80(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_cdc_parse_cdc_header
	movq	-72(%rbp), %r13
	testq	%r13, %r13
	je	LBB0_2
## %bb.1:
	cmpl	$0, -80(%rbp)
	je	LBB0_2
## %bb.4:
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_usb_ifnum_to_if
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r15
	cmpl	$2, (%rax)
	jne	LBB0_2
## %bb.7:
	movq	8(%r15), %r12
	movl	16(%r12), %eax
	cmpl	$2, %eax
	je	LBB0_11
## %bb.8:
	testl	%eax, %eax
	jne	LBB0_2
## %bb.9:
	cmpl	$2, 48(%r12)
	jne	LBB0_2
## %bb.10:
	addq	$32, %r12
	jmp	LBB0_12
LBB0_5:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_11:
	cmpl	$0, 48(%r12)
	je	LBB0_12
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_18:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_urbs@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_rxq_size@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_struct_size
	movq	_NET_NAME_UNKNOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_usbpn_setup@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	_usbpn_probe.ifname(%rip), %rsi
	movl	%eax, %edi
	callq	_alloc_netdev
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	%rax, %rdi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	16(%rbx), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_SET_NETDEV_DEV
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 56(%rax)
	movq	%r14, 48(%rax)
	movq	%rbx, 40(%rax)
	movq	%r15, 32(%rax)
	leaq	28(%rax), %rdi
	callq	_spin_lock_init
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	24(%rax), %rdi
	callq	_spin_lock_init
	movq	8(%r12), %rax
	movl	(%rax), %edi
	callq	_usb_pipein
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%dl
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	sete	%cl
	movq	8(%r12), %rax
	movl	(%rax,%rcx,4), %esi
	movq	%r14, %rdi
	callq	_usb_rcvbulkpipe
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 16(%rcx)
	movq	8(%r12), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax,%rcx,4), %esi
	movq	%r14, %rdi
	callq	_usb_sndbulkpipe
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, 8(%rdx)
	subq	8(%r15), %r12
	shrq	$5, %r12
	movl	%r12d, (%rdx)
	movq	_usbpn_driver@GOTPCREL(%rip), %rdi
	movq	%r15, %rsi
	callq	_usb_driver_claim_interface
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.15:
	movl	(%r13), %esi
	xorl	%edx, %edx
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	cmpl	$0, (%r12)
	sete	%dl
	movq	%r14, %rdi
	callq	_usb_set_interface
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_usb_set_intfdata
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_register_netdev
	testl	%eax, %eax
	je	LBB0_19
## %bb.16:
	movl	%eax, %r12d
	movq	_usbpn_driver@GOTPCREL(%rip), %rdi
	movq	%r15, %rsi
	callq	_usb_driver_release_interface
LBB0_17:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_usb_set_intfdata
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_free_netdev
	jmp	LBB0_18
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_19:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	xorl	%r12d, %r12d
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_usbpn_probe.ifname:                    ## @usbpn_probe.ifname
	.asciz	"usbpn%d"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_urbs,4,2                       ## @urbs
	.comm	_rxq_size,4,2                   ## @rxq_size
	.comm	_NET_NAME_UNKNOWN,4,2           ## @NET_NAME_UNKNOWN
	.comm	_usbpn_setup,4,2                ## @usbpn_setup
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_usbpn_driver,4,2               ## @usbpn_driver
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"USB CDC Phonet device found\n"

	.no_dead_strip	_usbpn_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usbpn_probe
_usbpn_probe:                           ; @usbpn_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	bl	_interface_to_usbdev
	mov	x20, x0
	ldr	x8, [x19, #8]
	ldr	x2, [x8, #24]
	ldr	w3, [x8]
	mov	x0, sp
	mov	x1, x19
	bl	_cdc_parse_cdc_header
	ldr	x25, [sp, #8]
	ldr	w8, [sp]
	cmp	x25, #0
	ccmp	w8, #0, #4, ne
	b.eq	LBB0_9
; %bb.1:
	ldr	w1, [x25]
	mov	x0, x20
	bl	_usb_ifnum_to_if
	cbz	x0, LBB0_7
; %bb.2:
	mov	x21, x0
	ldr	w8, [x0]
	cmp	w8, #2
	b.ne	LBB0_9
; %bb.3:
	ldr	x24, [x21, #8]
	ldr	w8, [x24, #16]
	cmp	w8, #2
	b.eq	LBB0_8
; %bb.4:
	cbnz	w8, LBB0_9
; %bb.5:
	ldr	w8, [x24, #48]
	cmp	w8, #2
	b.ne	LBB0_9
; %bb.6:
	add	x24, x24, #32
	b	LBB0_12
LBB0_7:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
	ldr	w8, [x24, #48]
	cbz	w8, LBB0_12
LBB0_9:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_11:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_12:
Lloh4:
	adrp	x8, _urbs@GOTPAGE
Lloh5:
	ldr	x8, [x8, _urbs@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _rxq_size@GOTPAGE
Lloh8:
	ldr	x8, [x8, _rxq_size@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	bl	_struct_size
Lloh10:
	adrp	x8, _NET_NAME_UNKNOWN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NET_NAME_UNKNOWN@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	adrp	x8, _usbpn_setup@GOTPAGE
Lloh14:
	ldr	x8, [x8, _usbpn_setup@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
Lloh16:
	adrp	x1, _usbpn_probe.ifname@PAGE
Lloh17:
	add	x1, x1, _usbpn_probe.ifname@PAGEOFF
	bl	_alloc_netdev
	cbz	x0, LBB0_17
; %bb.13:
	mov	x22, x0
	bl	_netdev_priv
	mov	x23, x0
	add	x1, x19, #16
	mov	x0, x22
	bl	_SET_NETDEV_DEV
	stp	x20, x22, [x23, #48]
	add	x0, x23, #28
	stp	x21, x19, [x23, #32]
	bl	_spin_lock_init
	add	x0, x23, #24
	bl	_spin_lock_init
	ldr	x8, [x24, #8]
	ldr	w0, [x8]
	bl	_usb_pipein
	cmp	x0, #0
	cset	w26, ne
	cset	w8, eq
	ldr	x9, [x24, #8]
	ldr	w1, [x9, w8, uxtw #2]
	mov	x0, x20
	bl	_usb_rcvbulkpipe
	str	x0, [x23, #16]
	ldr	x8, [x24, #8]
	ldr	w1, [x8, w26, uxtw #2]
	mov	x0, x20
	bl	_usb_sndbulkpipe
	str	x0, [x23, #8]
	ldr	x8, [x21, #8]
	sub	x8, x24, x8
	lsr	x8, x8, #5
	str	w8, [x23]
Lloh18:
	adrp	x0, _usbpn_driver@GOTPAGE
Lloh19:
	ldr	x0, [x0, _usbpn_driver@GOTPAGEOFF]
	mov	x1, x21
	mov	x2, x23
	bl	_usb_driver_claim_interface
	mov	x24, x0
	cbnz	w0, LBB0_16
; %bb.14:
	ldr	w1, [x25]
	ldr	w8, [x23]
	cmp	w8, #0
	cset	w2, eq
	mov	x0, x20
	bl	_usb_set_interface
	mov	x0, x19
	mov	x1, x23
	bl	_usb_set_intfdata
	mov	x0, x22
	bl	_register_netdev
	mov	x24, x0
	cbz	w0, LBB0_18
; %bb.15:
Lloh20:
	adrp	x0, _usbpn_driver@GOTPAGE
Lloh21:
	ldr	x0, [x0, _usbpn_driver@GOTPAGEOFF]
	mov	x1, x21
	bl	_usb_driver_release_interface
LBB0_16:
	mov	x0, x19
	mov	x1, #0
	bl	_usb_set_intfdata
	mov	x0, x22
	bl	_free_netdev
	b	LBB0_11
LBB0_17:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_10
LBB0_18:
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_dbg
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_usbpn_probe.ifname:                    ; @usbpn_probe.ifname
	.asciz	"usbpn%d"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_urbs,4,2                       ; @urbs
	.comm	_rxq_size,4,2                   ; @rxq_size
	.comm	_NET_NAME_UNKNOWN,4,2           ; @NET_NAME_UNKNOWN
	.comm	_usbpn_setup,4,2                ; @usbpn_setup
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_usbpn_driver,4,2               ; @usbpn_driver
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"USB CDC Phonet device found\n"

	.no_dead_strip	_usbpn_probe
.subsections_via_symbols
