	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pegasus_open
_pegasus_open:                          ## @pegasus_open
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r12
	cmpq	$0, 24(%rax)
	jne	LBB0_2
## %bb.1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	movl	12(%r12), %edi
	movq	_PEGASUS_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	___netdev_alloc_skb_ip_align
	movq	%rax, 24(%r12)
	testq	%rax, %rax
	je	LBB0_14
LBB0_2:
	movq	_EthID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %ecx
	movq	%r12, %rdi
	movl	$6, %edx
	callq	_set_registers
	movl	4(%r12), %r15d
	movl	8(%r12), %ebx
	movl	%ebx, %edi
	movl	$1, %esi
	callq	_usb_rcvbulkpipe
	movq	24(%r12), %rcx
	movl	(%rcx), %ecx
	movq	_PEGASUS_MTU@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movq	_read_bulk_callback@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	subq	$8, %rsp
	movl	%r15d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	pushq	%r12
	callq	_usb_fill_bulk_urb
	addq	$16, %rsp
	movl	4(%r12), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_usb_submit_urb
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movl	%eax, %r15d
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r15d, %eax
	jne	LBB0_5
## %bb.4:
	movl	12(%r12), %edi
	callq	_netif_device_detach
LBB0_5:
	movq	_ifup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	movq	%r14, %rdx
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_netif_dbg
	jmp	LBB0_14
LBB0_6:
	movl	(%r12), %r15d
	movl	8(%r12), %ebx
	movl	%ebx, %edi
	movl	$3, %esi
	callq	_usb_rcvintpipe
	movl	16(%r12), %r10d
	movl	20(%r12), %ecx
	movq	_intr_callback@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movl	%r15d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	movl	$4, %r8d
	pushq	%r10
	pushq	%r12
	callq	_usb_fill_int_urb
	addq	$16, %rsp
	movl	(%r12), %edi
	movl	(%r13), %esi
	callq	_usb_submit_urb
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:
	movl	%eax, %r15d
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r15d, %eax
	jne	LBB0_9
## %bb.8:
	movl	12(%r12), %edi
	callq	_netif_device_detach
LBB0_9:
	movq	_ifup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rcx
	movq	%r12, %rdi
	movq	%r14, %rdx
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_netif_dbg
	movl	4(%r12), %edi
LBB0_13:
	callq	_usb_kill_urb
	jmp	LBB0_14
LBB0_10:
	movl	8(%r12), %esi
	movq	%r14, %rdi
	callq	_enable_net_traffic
	testl	%eax, %eax
	js	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	callq	_set_carrier
	movq	%r14, %rdi
	callq	_netif_start_queue
	movq	_ifup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rcx
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_netif_dbg
LBB0_14:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_ifup@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.2(%rip), %rcx
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	movq	%r14, %rdx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_netif_dbg
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	movl	4(%r12), %edi
	callq	_usb_kill_urb
	movl	(%r12), %edi
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PEGASUS_MTU,4,2                ## @PEGASUS_MTU
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_EthID,4,2                      ## @EthID
	.comm	_read_bulk_callback,4,2         ## @read_bulk_callback
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ifup,4,2                       ## @ifup
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed rx_urb, %d\n"

	.comm	_intr_callback,4,2              ## @intr_callback
L_.str.1:                               ## @.str.1
	.asciz	"failed intr_urb, %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"can't enable_net_traffic() - %d\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.3:                               ## @.str.3
	.asciz	"open\n"

	.no_dead_strip	_pegasus_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pegasus_open
_pegasus_open:                          ; @pegasus_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x8, [x0, #24]
Lloh0:
	adrp	x24, _PEGASUS_MTU@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PEGASUS_MTU@GOTPAGEOFF]
Lloh2:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w21, [x8]
	ldr	w0, [x19, #12]
	ldr	w1, [x24]
	ldr	w2, [x23]
	bl	___netdev_alloc_skb_ip_align
	str	x0, [x19, #24]
	cbz	x0, LBB0_10
LBB0_2:
Lloh7:
	adrp	x8, _EthID@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EthID@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	w3, [x20]
	mov	x0, x19
	mov	w2, #6
	bl	_set_registers
	ldp	w21, w22, [x19, #4]
	mov	x0, x22
	mov	w1, #1
	bl	_usb_rcvbulkpipe
	mov	x2, x0
	ldr	x8, [x19, #24]
	ldr	w3, [x8]
	ldr	w4, [x24]
Lloh10:
	adrp	x8, _read_bulk_callback@GOTPAGE
Lloh11:
	ldr	x8, [x8, _read_bulk_callback@GOTPAGEOFF]
Lloh12:
	ldr	w5, [x8]
	mov	x0, x21
	mov	x1, x22
	mov	x6, x19
	bl	_usb_fill_bulk_urb
	ldr	w0, [x19, #4]
	ldr	w1, [x23]
	bl	_usb_submit_urb
	cbz	w0, LBB0_6
; %bb.3:
	mov	x21, x0
Lloh13:
	adrp	x8, _ENODEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_5
; %bb.4:
	ldr	w0, [x19, #12]
	bl	_netif_device_detach
LBB0_5:
Lloh16:
	adrp	x8, _ifup@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ifup@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	str	x21, [sp]
Lloh19:
	adrp	x3, l_.str@PAGE
Lloh20:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_netif_dbg
	b	LBB0_14
LBB0_6:
	ldr	w21, [x19]
	ldr	w22, [x19, #8]
	mov	x0, x22
	mov	w1, #3
	bl	_usb_rcvintpipe
	mov	x2, x0
Lloh21:
	adrp	x8, _intr_callback@GOTPAGE
Lloh22:
	ldr	x8, [x8, _intr_callback@GOTPAGEOFF]
Lloh23:
	ldr	w5, [x8]
	ldp	w7, w3, [x19, #16]
	mov	x0, x21
	mov	x1, x22
	mov	w4, #4
	mov	x6, x19
	bl	_usb_fill_int_urb
	ldr	w0, [x19]
	ldr	w1, [x23]
	bl	_usb_submit_urb
	cbz	w0, LBB0_11
; %bb.7:
	mov	x21, x0
Lloh24:
	adrp	x8, _ENODEV@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_9
; %bb.8:
	ldr	w0, [x19, #12]
	bl	_netif_device_detach
LBB0_9:
Lloh27:
	adrp	x8, _ifup@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ifup@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	str	x21, [sp]
Lloh30:
	adrp	x3, l_.str.1@PAGE
Lloh31:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_netif_dbg
	ldr	w0, [x19, #4]
	bl	_usb_kill_urb
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_14
LBB0_10:
	neg	w21, w21
	b	LBB0_14
LBB0_11:
	ldr	w1, [x19, #8]
	mov	x0, x20
	bl	_enable_net_traffic
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_13
; %bb.12:
	mov	x0, x20
	bl	_set_carrier
	mov	x0, x20
	bl	_netif_start_queue
Lloh32:
	adrp	x8, _ifup@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ifup@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
Lloh35:
	adrp	x3, l_.str.3@PAGE
Lloh36:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_netif_dbg
	mov	w21, #0
	b	LBB0_14
LBB0_13:
Lloh37:
	adrp	x8, _ifup@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ifup@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	str	x0, [sp]
Lloh40:
	adrp	x3, l_.str.2@PAGE
Lloh41:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_netif_dbg
Lloh42:
	adrp	x8, _EIO@GOTPAGE
Lloh43:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	neg	w21, w8
	ldr	w0, [x19, #4]
	bl	_usb_kill_urb
	ldr	w0, [x19]
	bl	_usb_kill_urb
LBB0_14:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PEGASUS_MTU,4,2                ; @PEGASUS_MTU
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_EthID,4,2                      ; @EthID
	.comm	_read_bulk_callback,4,2         ; @read_bulk_callback
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ifup,4,2                       ; @ifup
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed rx_urb, %d\n"

	.comm	_intr_callback,4,2              ; @intr_callback
l_.str.1:                               ; @.str.1
	.asciz	"failed intr_urb, %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"can't enable_net_traffic() - %d\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.3:                               ; @.str.3
	.asciz	"open\n"

	.no_dead_strip	_pegasus_open
.subsections_via_symbols
