	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netx_eth_drv_probe
_netx_eth_drv_probe:                    ## @netx_eth_drv_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, %r14
	movl	$32, %edi
	callq	_alloc_etherdev
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	leaq	8(%r14), %rbx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_SET_NETDEV_DEV
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	movq	%r15, %rdi
	callq	_netdev_priv
	movq	%rax, %r12
	movq	8(%r14), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_request_xc
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	12(%rax), %ecx
	movl	%ecx, (%r15)
	movl	(%r14), %ecx
	movl	%ecx, 8(%r12)
	movl	8(%rax), %ecx
	movl	%ecx, 24(%r12)
	movl	4(%rax), %ecx
	movl	%ecx, 20(%r12)
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	%r12, %rdi
	addq	$12, %rdi
	callq	_spin_lock_init
	movl	8(%r12), %edi
	callq	_PFIFO_MASK
	movl	%eax, %edi
	callq	_pfifo_request
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_printk
	jmp	LBB0_9
LBB0_1:
	movq	_CARDNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_printk
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_6:
	movq	%r15, %rdi
	callq	_netx_eth_enable
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%eax, %ebx
	movl	8(%r12), %edi
	callq	_PFIFO_MASK
	movl	%eax, %edi
	callq	_pfifo_free
LBB0_9:
	movq	(%r12), %rdi
	callq	_free_xc
LBB0_10:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_set_drvdata
	movq	%r15, %rdi
	callq	_free_netdev
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: could not allocate device.\n"

	.comm	_CARDNAME,4,2                   ## @CARDNAME
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"unable to request xc engine\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.2:                               ## @.str.2
	.asciz	"unable to request PFIFO\n"

	.no_dead_strip	_netx_eth_drv_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netx_eth_drv_probe
_netx_eth_drv_probe:                    ; @netx_eth_drv_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
	mov	w0, #32
	bl	_alloc_etherdev
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	add	x22, x19, #8
	mov	x1, x22
	bl	_SET_NETDEV_DEV
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	x0, x20
	bl	_netdev_priv
	mov	x21, x0
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	x1, x22
	bl	_request_xc
	str	x0, [x21]
	cbz	x0, LBB0_5
; %bb.2:
	ldp	w9, w8, [x0, #8]
	str	w8, [x20]
	ldr	w8, [x19]
	str	w8, [x21, #8]
	str	w9, [x21, #24]
	ldr	d0, [x0]
	str	d0, [x21, #16]
	add	x0, x21, #12
	bl	_spin_lock_init
	ldr	w0, [x21, #8]
	bl	_PFIFO_MASK
	bl	_pfifo_request
	cbz	w0, LBB0_6
; %bb.3:
	mov	x22, x0
Lloh0:
	adrp	x0, l_.str.2@PAGE
Lloh1:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printk
	b	LBB0_8
LBB0_4:
Lloh2:
	adrp	x8, _CARDNAME@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CARDNAME@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_10
LBB0_5:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_dev_err
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_9
LBB0_6:
	mov	x0, x20
	bl	_netx_eth_enable
	mov	x22, x0
	cbz	w0, LBB0_10
; %bb.7:
	ldr	w0, [x21, #8]
	bl	_PFIFO_MASK
	bl	_pfifo_free
LBB0_8:
	ldr	x0, [x21]
	bl	_free_xc
LBB0_9:
	mov	x0, x19
	mov	x1, #0
	bl	_platform_set_drvdata
	mov	x0, x20
	bl	_free_netdev
LBB0_10:
	mov	x0, x22
	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	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: could not allocate device.\n"

	.comm	_CARDNAME,4,2                   ; @CARDNAME
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"unable to request xc engine\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.2:                               ; @.str.2
	.asciz	"unable to request PFIFO\n"

	.no_dead_strip	_netx_eth_drv_probe
.subsections_via_symbols
