	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jazz_sonic_probe
_jazz_sonic_probe:                      ## @jazz_sonic_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, %rbx
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r12
	movl	$8, %edi
	callq	_alloc_etherdev
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rbx, (%rax)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_SET_NETDEV_DEV
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	movq	%r15, %rdi
	callq	_netdev_boot_setup_check
	movl	(%r12), %eax
	movl	%eax, (%r15)
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, 4(%r15)
	movq	%r15, %rdi
	callq	_sonic_probe1
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movl	8(%r15), %edx
	movl	(%r15), %esi
	movl	4(%r15), %ecx
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	movq	%r15, %rdi
	callq	_sonic_msg_init
	movq	%r15, %rdi
	callq	_register_netdev
	testl	%eax, %eax
	je	LBB0_9
## %bb.4:
	movl	%eax, %ebx
	movl	(%r15), %edi
	movq	_SONIC_MEM_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_release_mem_region
LBB0_5:
	movq	%r15, %rdi
	callq	_free_netdev
	movl	%ebx, %r14d
	jmp	LBB0_9
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
LBB0_8:
	subl	(%rax), %r14d
LBB0_9:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SONIC ethernet @%08lx, MAC %pM, IRQ %d\n"

	.comm	_SONIC_MEM_SIZE,4,2             ## @SONIC_MEM_SIZE
	.no_dead_strip	_jazz_sonic_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jazz_sonic_probe
_jazz_sonic_probe:                      ; @jazz_sonic_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	x20, x0
Lloh0:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x0
	mov	w0, #8
	bl	_alloc_etherdev
	cbz	x0, LBB0_7
; %bb.2:
	mov	x19, x0
	bl	_netdev_priv
	str	x20, [x0]
	mov	x0, x19
	mov	x1, x20
	bl	_SET_NETDEV_DEV
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	mov	x0, x19
	bl	_netdev_boot_setup_check
	ldr	w8, [x21]
	str	w8, [x19]
	mov	x0, x20
	mov	w1, #0
	bl	_platform_get_irq
	str	w0, [x19, #4]
	mov	x0, x19
	bl	_sonic_probe1
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.3:
	ldp	w3, w2, [x19, #4]
	ldr	w1, [x19]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	mov	x0, x19
	bl	_sonic_msg_init
	mov	x0, x19
	bl	_register_netdev
	mov	x20, x0
	cbz	w0, LBB0_9
; %bb.4:
	ldr	w0, [x19]
Lloh5:
	adrp	x8, _SONIC_MEM_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SONIC_MEM_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_release_mem_region
LBB0_5:
	mov	x0, x19
	bl	_free_netdev
	b	LBB0_9
LBB0_6:
Lloh8:
	adrp	x8, _ENODEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_9:
	mov	x0, x20
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SONIC ethernet @%08lx, MAC %pM, IRQ %d\n"

	.comm	_SONIC_MEM_SIZE,4,2             ; @SONIC_MEM_SIZE
	.no_dead_strip	_jazz_sonic_probe
.subsections_via_symbols
