	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xlgmac_drv_probe               ## -- Begin function xlgmac_drv_probe
	.p2align	4, 0x90
_xlgmac_drv_probe:                      ## @xlgmac_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	%rsi, %r12
	movq	%rdi, %r14
	movq	_XLGMAC_MAX_DMA_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_alloc_etherdev_mq
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_SET_NETDEV_DEV
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_dev_set_drvdata
	movq	%r15, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%r14, 24(%rax)
	movq	%r15, 16(%rax)
	movl	4(%r12), %eax
	movl	%eax, 12(%rbx)
	movl	(%r12), %eax
	movl	%eax, 8(%rbx)
	leaq	4(%rbx), %rdi
	callq	_mutex_init
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_default_msg_level@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_netif_msg_init
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_xlgmac_init
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_4:
	movq	%r15, %rdi
	callq	_register_netdev
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
LBB0_6:
	movq	%r14, %rdi
	callq	_dev_err
	movq	%r15, %rdi
	callq	_free_netdev
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_XLGMAC_MAX_DMA_CHANNELS,4,2    ## @XLGMAC_MAX_DMA_CHANNELS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"alloc_etherdev failed\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_debug,4,2                      ## @debug
	.comm	_default_msg_level,4,2          ## @default_msg_level
L_.str.1:                               ## @.str.1
	.asciz	"xlgmac init failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"net device registration failed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xlgmac_drv_probe               ; -- Begin function xlgmac_drv_probe
	.p2align	2
_xlgmac_drv_probe:                      ; @xlgmac_drv_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _XLGMAC_MAX_DMA_CHANNELS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XLGMAC_MAX_DMA_CHANNELS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_alloc_etherdev_mq
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x1, x19
	bl	_SET_NETDEV_DEV
	mov	x0, x19
	mov	x1, x20
	bl	_dev_set_drvdata
	mov	x0, x20
	bl	_netdev_priv
	mov	x22, x0
	stp	x20, x19, [x0, #16]
	ldr	d0, [x21]
	str	d0, [x0, #8]
	add	x0, x0, #4
	bl	_mutex_init
Lloh3:
	adrp	x8, _debug@GOTPAGE
Lloh4:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _default_msg_level@GOTPAGE
Lloh7:
	ldr	x8, [x8, _default_msg_level@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_netif_msg_init
	str	w0, [x22]
	mov	x0, x22
	bl	_xlgmac_init
	cbz	w0, LBB0_4
; %bb.2:
	mov	x21, x0
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_3:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_7
LBB0_4:
	mov	x0, x20
	bl	_register_netdev
	mov	x21, x0
	cbz	w0, LBB0_7
; %bb.5:
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_dev_err
	mov	x0, x20
	bl	_free_netdev
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_XLGMAC_MAX_DMA_CHANNELS,4,2    ; @XLGMAC_MAX_DMA_CHANNELS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"alloc_etherdev failed\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_debug,4,2                      ; @debug
	.comm	_default_msg_level,4,2          ; @default_msg_level
l_.str.1:                               ; @.str.1
	.asciz	"xlgmac init failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"net device registration failed\n"

.subsections_via_symbols
