	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ray_probe
_ray_probe:                             ## @ray_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	4(%rdi), %r14
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	$48, %edi
	callq	_alloc_etherdev
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r12
	movq	%r15, 40(%rax)
	movq	24(%r15), %rax
	movq	(%rax), %rax
	movq	$0, 8(%rax)
	movq	_IO_DATA_PATH_WIDTH_8@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rax)
	movq	_CONF_ENABLE_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r15)
	movl	$1, (%r15)
	movq	%rbx, 8(%r15)
	movq	%r15, 40(%r12)
	movq	_CARD_INSERTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r12)
	movq	_UNAUTHENTICATED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r12)
	movq	$0, 24(%r12)
	leaq	L_.str.1(%rip), %rsi
	movq	_ray_interrupt@GOTPCREL(%rip), %r9
	movq	%r14, %rdi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	movq	%r12, %r8
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_ray_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movq	_ray_handler_def@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	%rbx, %rdi
	callq	_netif_stop_queue
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_timer_setup
	movq	_this_device@GOTPCREL(%rip), %rax
	movq	%r15, (%rax)
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ray_config                     ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ray_attach()\n"

	.comm	_IO_DATA_PATH_WIDTH_8,4,2       ## @IO_DATA_PATH_WIDTH_8
	.comm	_CONF_ENABLE_IRQ,4,2            ## @CONF_ENABLE_IRQ
	.comm	_CARD_INSERTED,4,2              ## @CARD_INSERTED
	.comm	_UNAUTHENTICATED,4,2            ## @UNAUTHENTICATED
L_.str.1:                               ## @.str.1
	.asciz	"ray_attach p_dev = %p,  dev = %p,  local = %p, intr = %p\n"

	.comm	_ray_interrupt,4,2              ## @ray_interrupt
	.comm	_ray_netdev_ops,4,2             ## @ray_netdev_ops
	.comm	_ray_handler_def,4,2            ## @ray_handler_def
L_.str.2:                               ## @.str.2
	.asciz	"ray_cs ray_attach calling ether_setup.)\n"

	.comm	_this_device,8,3                ## @this_device
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_ray_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ray_probe
_ray_probe:                             ; @ray_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	add	x20, x0, #4
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	mov	w0, #48
	bl	_alloc_etherdev
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x0
	bl	_netdev_priv
	mov	x22, x0
	str	x19, [x0, #40]
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
Lloh2:
	adrp	x9, _IO_DATA_PATH_WIDTH_8@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IO_DATA_PATH_WIDTH_8@GOTPAGEOFF]
	str	xzr, [x8, #8]
Lloh4:
	ldr	w9, [x9]
	ldr	w10, [x8]
	orr	w9, w10, w9
Lloh5:
	adrp	x10, _CONF_ENABLE_IRQ@GOTPAGE
Lloh6:
	ldr	x10, [x10, _CONF_ENABLE_IRQ@GOTPAGEOFF]
	str	w9, [x8]
Lloh7:
	ldr	w8, [x10]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
	mov	w8, #1
	str	w8, [x19]
	str	x21, [x19, #8]
	str	x19, [x0, #40]
Lloh8:
	adrp	x8, _CARD_INSERTED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CARD_INSERTED@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _UNAUTHENTICATED@GOTPAGE
Lloh12:
	ldr	x9, [x9, _UNAUTHENTICATED@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #32]
	str	xzr, [x0, #24]
Lloh14:
	adrp	x8, _ray_interrupt@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ray_interrupt@GOTPAGEOFF]
	stp	x0, x8, [sp, #16]
	stp	x19, x21, [sp]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
Lloh18:
	adrp	x8, _ray_netdev_ops@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ray_netdev_ops@GOTPAGEOFF]
Lloh20:
	adrp	x9, _ray_handler_def@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ray_handler_def@GOTPAGEOFF]
	stp	x9, x8, [x21, #8]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	mov	x0, x21
	bl	_netif_stop_queue
	mov	x0, x22
	mov	x1, #0
	mov	w2, #0
	bl	_timer_setup
Lloh24:
	adrp	x8, _this_device@GOTPAGE
Lloh25:
	ldr	x8, [x8, _this_device@GOTPAGEOFF]
Lloh26:
	str	x19, [x8]
	mov	x0, x19
	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
	add	sp, sp, #80
	b	_ray_config
LBB0_2:
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w0, w8
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ray_attach()\n"

	.comm	_IO_DATA_PATH_WIDTH_8,4,2       ; @IO_DATA_PATH_WIDTH_8
	.comm	_CONF_ENABLE_IRQ,4,2            ; @CONF_ENABLE_IRQ
	.comm	_CARD_INSERTED,4,2              ; @CARD_INSERTED
	.comm	_UNAUTHENTICATED,4,2            ; @UNAUTHENTICATED
l_.str.1:                               ; @.str.1
	.asciz	"ray_attach p_dev = %p,  dev = %p,  local = %p, intr = %p\n"

	.comm	_ray_interrupt,4,2              ; @ray_interrupt
	.comm	_ray_netdev_ops,4,2             ; @ray_netdev_ops
	.comm	_ray_handler_def,4,2            ; @ray_handler_def
l_.str.2:                               ; @.str.2
	.asciz	"ray_cs ray_attach calling ether_setup.)\n"

	.comm	_this_device,8,3                ; @this_device
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_ray_probe
.subsections_via_symbols
