	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function w5100_spi_probe
_w5100_spi_probe:                       ## @w5100_spi_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	8(%rdi), %r15
	movq	8(%rdi), %rdi
	callq	_of_get_mac_address
	movq	%rax, %r14
	cmpq	$0, 8(%rbx)
	je	LBB0_4
## %bb.1:
	movq	_w5100_of_match@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_of_match_device
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_4:
	movq	%rbx, %rdi
	callq	_spi_get_device_id
LBB0_5:
	movl	(%rax), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	jae	LBB0_6
## %bb.7:
	cltq
	leaq	l_switch.table.w5100_spi_probe(%rip), %rcx
	movq	(%rcx,%rax,8), %rsi
	leaq	l_switch.table.w5100_spi_probe.1(%rip), %rcx
	movl	(%rcx,%rax,4), %edx
	movl	(%rbx), %r8d
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r9d, %r9d
	subl	(%rax), %r9d
	movq	%r15, %rdi
	movq	%r14, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_w5100_probe                    ## TAILCALL
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_w5100_of_match,4,2             ## @w5100_of_match
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_w5100_spi_ops,4,2              ## @w5100_spi_ops
	.comm	_w5200_ops,4,2                  ## @w5200_ops
	.comm	_w5500_ops,4,2                  ## @w5500_ops
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_w5100_spi_probe
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.w5100_spi_probe
l_switch.table.w5100_spi_probe:
	.quad	_w5500_ops
	.quad	_w5200_ops
	.quad	_w5100_spi_ops

	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.w5100_spi_probe.1
l_switch.table.w5100_spi_probe.1:
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	0                               ## 0x0

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function w5100_spi_probe
_w5100_spi_probe:                       ; @w5100_spi_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
	mov	x19, x0
	ldr	x0, [x19, #8]!
	bl	_of_get_mac_address
	mov	x21, x0
	ldr	x8, [x19]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _w5100_of_match@GOTPAGE
Lloh1:
	ldr	x8, [x8, _w5100_of_match@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_of_match_device
	cbnz	x0, LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _ENODEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
	mov	x0, x20
	bl	_spi_get_device_id
LBB0_4:
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hs	LBB0_6
; %bb.5:
Lloh5:
	adrp	x9, l_switch.table.w5100_spi_probe@PAGE
Lloh6:
	add	x9, x9, l_switch.table.w5100_spi_probe@PAGEOFF
	ldr	x1, [x9, w8, sxtw #3]
Lloh7:
	adrp	x9, l_switch.table.w5100_spi_probe.1@PAGE
Lloh8:
	add	x9, x9, l_switch.table.w5100_spi_probe.1@PAGEOFF
	ldr	w2, [x9, w8, sxtw #2]
	ldr	w4, [x20]
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w5, w8
	mov	x0, x19
	mov	x3, 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
	b	_w5100_probe
LBB0_6:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_w5100_of_match,4,2             ; @w5100_of_match
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_w5100_spi_ops,4,2              ; @w5100_spi_ops
	.comm	_w5200_ops,4,2                  ; @w5200_ops
	.comm	_w5500_ops,4,2                  ; @w5500_ops
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_w5100_spi_probe
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.w5100_spi_probe
l_switch.table.w5100_spi_probe:
	.quad	_w5500_ops
	.quad	_w5200_ops
	.quad	_w5100_spi_ops

	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.w5100_spi_probe.1
l_switch.table.w5100_spi_probe.1:
	.long	4                               ; 0x4
	.long	4                               ; 0x4
	.long	0                               ; 0x0

.subsections_via_symbols
