	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ftmac100_probe
_ftmac100_probe:                        ## @ftmac100_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	%rdi, %r14
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_18
## %bb.6:
	movl	$72, %edi
	callq	_alloc_etherdev
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_SET_NETDEV_DEV
	movq	_ftmac100_ethtool_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movq	_ftmac100_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	movq	%rbx, %rdi
	callq	_netdev_priv
	movq	%rax, %r13
	movq	%rbx, 64(%rax)
	movq	%r14, 56(%rax)
	leaq	48(%rax), %rdi
	callq	_spin_lock_init
	leaq	4(%r13), %rsi
	movq	_ftmac100_poll@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movl	$64, %ecx
	callq	_netif_napi_add
	movl	(%r12), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_resource_size
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_dev_name
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_request_mem_region
	movl	%eax, 8(%r13)
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movl	(%r12), %ebx
	movq	%r12, %rdi
	callq	_resource_size
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ioremap
	movl	%eax, 12(%r13)
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movl	%r15d, (%r13)
	movq	$0, 40(%r13)
	movabsq	$133143986207, %rax             ## imm = 0x1F0000001F
	movq	%rax, 16(%r13)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, 32(%r13)
	movq	_ftmac100_mdio_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r13)
	movq	_ftmac100_mdio_write@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r13)
	movq	%rbx, %rdi
	callq	_register_netdev
	testl	%eax, %eax
	je	LBB0_16
## %bb.13:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	12(%r13), %edi
	callq	_iounmap
	jmp	LBB0_14
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_18
LBB0_4:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_18
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_9:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_15
LBB0_11:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_14:
	movl	8(%r13), %edi
	callq	_release_resource
LBB0_15:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_napi_del
	movq	%rbx, %rdi
	callq	_free_netdev
LBB0_18:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movl	(%r13), %edx
	movl	12(%r13), %ecx
	leaq	L_.str.3(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_netdev_info
	movl	(%rbx), %edi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	jne	LBB0_18
## %bb.17:
	movq	%rbx, %rdi
	callq	_eth_hw_addr_random
	movl	(%rbx), %edx
	leaq	L_.str.4(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_netdev_info
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ftmac100_ethtool_ops,4,2       ## @ftmac100_ethtool_ops
	.comm	_ftmac100_netdev_ops,4,2        ## @ftmac100_netdev_ops
	.comm	_ftmac100_poll,4,2              ## @ftmac100_poll
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not reserve memory region\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to ioremap ethernet registers\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_ftmac100_mdio_read,4,2         ## @ftmac100_mdio_read
	.comm	_ftmac100_mdio_write,4,2        ## @ftmac100_mdio_write
L_.str.2:                               ## @.str.2
	.asciz	"Failed to register netdev\n"

L_.str.3:                               ## @.str.3
	.asciz	"irq %d, mapped at %p\n"

L_.str.4:                               ## @.str.4
	.asciz	"generated random MAC address %pM\n"

	.no_dead_strip	_ftmac100_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ftmac100_probe
_ftmac100_probe:                        ; @ftmac100_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cbz	x0, LBB0_8
; %bb.1:
	mov	x21, 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_9
; %bb.2:
	mov	x24, x0
	mov	x0, x21
	mov	w1, #0
	bl	_platform_get_irq
	mov	x20, x0
	tbnz	w0, #31, LBB0_12
; %bb.3:
	mov	w0, #72
	bl	_alloc_etherdev
	cbz	x0, LBB0_10
; %bb.4:
	mov	x19, x0
	mov	x1, x21
	bl	_SET_NETDEV_DEV
Lloh3:
	adrp	x8, _ftmac100_ethtool_ops@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ftmac100_ethtool_ops@GOTPAGEOFF]
Lloh5:
	adrp	x9, _ftmac100_netdev_ops@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ftmac100_netdev_ops@GOTPAGEOFF]
	stp	x9, x8, [x19, #8]
	mov	x0, x21
	mov	x1, x19
	bl	_platform_set_drvdata
	mov	x0, x19
	bl	_netdev_priv
	mov	x23, x0
	stp	x21, x19, [x0, #56]
	add	x0, x0, #48
	bl	_spin_lock_init
	add	x22, x23, #4
Lloh7:
	adrp	x8, _ftmac100_poll@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ftmac100_poll@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	w3, #64
	bl	_netif_napi_add
	ldr	w25, [x24]
	mov	x0, x24
	bl	_resource_size
	mov	x26, x0
	mov	x0, x21
	bl	_dev_name
	mov	x2, x0
	mov	x0, x25
	mov	x1, x26
	bl	_request_mem_region
	str	w0, [x23, #8]
	cbz	w0, LBB0_13
; %bb.5:
	ldr	w25, [x24]
	mov	x0, x24
	bl	_resource_size
	mov	x1, x0
	mov	x0, x25
	bl	_ioremap
	str	w0, [x23, #12]
	cbz	w0, LBB0_14
; %bb.6:
	str	w20, [x23]
	movi.2s	v0, #31
	str	d0, [x23, #16]
	stp	x19, xzr, [x23, #32]
Lloh10:
	adrp	x8, _ftmac100_mdio_read@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ftmac100_mdio_read@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _ftmac100_mdio_write@GOTPAGE
Lloh14:
	ldr	x9, [x9, _ftmac100_mdio_write@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	stp	w9, w8, [x23, #24]
	mov	x0, x19
	bl	_register_netdev
	cbz	w0, LBB0_17
; %bb.7:
	mov	x20, x0
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	ldr	w0, [x23, #12]
	bl	_iounmap
	b	LBB0_15
LBB0_8:
Lloh18:
	adrp	x8, _ENODEV@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
Lloh20:
	adrp	x8, _ENXIO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_13:
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_16
LBB0_14:
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh31:
	adrp	x8, _EIO@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_15:
	ldr	w0, [x23, #8]
	bl	_release_resource
LBB0_16:
	mov	x0, x22
	bl	_netif_napi_del
	mov	x0, x19
	bl	_free_netdev
	b	LBB0_12
LBB0_17:
	ldr	w2, [x23]
	ldr	w8, [x23, #12]
	str	x8, [sp]
Lloh34:
	adrp	x1, l_.str.3@PAGE
Lloh35:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
	ldr	w0, [x19]
	bl	_is_valid_ether_addr
	cbnz	w0, LBB0_19
; %bb.18:
	mov	x0, x19
	bl	_eth_hw_addr_random
	ldr	w2, [x19]
Lloh36:
	adrp	x1, l_.str.4@PAGE
Lloh37:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_netdev_info
LBB0_19:
	mov	w20, #0
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ftmac100_ethtool_ops,4,2       ; @ftmac100_ethtool_ops
	.comm	_ftmac100_netdev_ops,4,2        ; @ftmac100_netdev_ops
	.comm	_ftmac100_poll,4,2              ; @ftmac100_poll
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not reserve memory region\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to ioremap ethernet registers\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_ftmac100_mdio_read,4,2         ; @ftmac100_mdio_read
	.comm	_ftmac100_mdio_write,4,2        ; @ftmac100_mdio_write
l_.str.2:                               ; @.str.2
	.asciz	"Failed to register netdev\n"

l_.str.3:                               ; @.str.3
	.asciz	"irq %d, mapped at %p\n"

l_.str.4:                               ; @.str.4
	.asciz	"generated random MAC address %pM\n"

	.no_dead_strip	_ftmac100_probe
.subsections_via_symbols
