	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function w5100_mmio_probe
_w5100_mmio_probe:                      ## @w5100_mmio_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
	callq	_dev_get_platdata
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	(%rbx), %rdi
	callq	_is_valid_ether_addr
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	(%rbx), %r15
	jmp	LBB0_5
LBB0_4:
	xorl	%r15d, %r15d
LBB0_5:
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rax, %rdi
	callq	_resource_size
	movq	_W5100_BUS_DIRECT_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_7
## %bb.6:
	movq	_w5100_mmio_indirect_ops@GOTPCREL(%rip), %r12
	jmp	LBB0_8
LBB0_7:
	movq	_w5100_mmio_direct_ops@GOTPCREL(%rip), %r12
LBB0_8:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	testl	%eax, %eax
	js	LBB0_11
## %bb.9:
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.10:
	movl	8(%rbx), %r9d
	jmp	LBB0_13
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%r9d, %r9d
	subl	(%rcx), %r9d
LBB0_13:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	movq	%r15, %rcx
	movl	%eax, %r8d
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_w5100_probe                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_W5100_BUS_DIRECT_SIZE,8,3      ## @W5100_BUS_DIRECT_SIZE
	.comm	_w5100_mmio_indirect_ops,4,2    ## @w5100_mmio_indirect_ops
	.comm	_w5100_mmio_direct_ops,4,2      ## @w5100_mmio_direct_ops
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_w5100_mmio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function w5100_mmio_probe
_w5100_mmio_probe:                      ; @w5100_mmio_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	x19, x0
	bl	_dev_get_platdata
	mov	x20, x0
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x0, [x20]
	bl	_is_valid_ether_addr
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x21, [x20]
	b	LBB0_4
LBB0_3:
	mov	x21, #0
LBB0_4:
Lloh0:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	bl	_resource_size
Lloh3:
	adrp	x8, _W5100_BUS_DIRECT_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _W5100_BUS_DIRECT_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _w5100_mmio_direct_ops@GOTPAGE
Lloh7:
	ldr	x9, [x9, _w5100_mmio_direct_ops@GOTPAGEOFF]
Lloh8:
	adrp	x10, _w5100_mmio_indirect_ops@GOTPAGE
Lloh9:
	ldr	x10, [x10, _w5100_mmio_indirect_ops@GOTPAGEOFF]
	cmp	x0, x8
	csel	x22, x10, x9, lt
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	mov	x4, x0
	tbnz	w0, #31, LBB0_7
; %bb.5:
	cbz	x20, LBB0_8
; %bb.6:
	ldr	w5, [x20, #8]
	b	LBB0_9
LBB0_7:
	mov	x0, x4
	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
LBB0_8:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w5, w8
LBB0_9:
	mov	x0, x19
	mov	x1, x22
	mov	w2, #4
	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
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_W5100_BUS_DIRECT_SIZE,8,3      ; @W5100_BUS_DIRECT_SIZE
	.comm	_w5100_mmio_indirect_ops,4,2    ; @w5100_mmio_indirect_ops
	.comm	_w5100_mmio_direct_ops,4,2      ; @w5100_mmio_direct_ops
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_w5100_mmio_probe
.subsections_via_symbols
