	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xrx200_probe
_xrx200_probe:                          ## @xrx200_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %r12
	movl	$64, %esi
	callq	_devm_alloc_etherdev
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%r13, 56(%rax)
	movq	%r15, 48(%rax)
	movq	_xrx200_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r13)
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_SET_NETDEV_DEV
	movq	_ETH_ZLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	movq	_XRX200_DMA_DATA_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r13)
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 40(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	40(%r14), %rdi
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_platform_get_irq_byname
	movq	%rax, 32(%r14)
	testq	%rax, %rax
	js	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_platform_get_irq_byname
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	jns	LBB0_13
LBB0_9:
	movq	_ENOENT@GOTPCREL(%rip), %rax
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movq	%rax, (%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	(%r14), %rdi
	jmp	LBB0_4
LBB0_15:
	movq	%r12, %rdi
	callq	_of_get_mac_address
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	%r13, %rdi
	callq	_eth_hw_addr_random
	jmp	LBB0_18
LBB0_17:
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_ether_addr_copy
LBB0_18:
	movq	%r14, %rdi
	callq	_xrx200_dma_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.19:
	movq	(%r14), %rdi
	callq	_clk_prepare_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_22
## %bb.20:
	movq	_PMAC_RX_IPG_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PMAC_RX_IPG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	$11, %edx
	callq	_xrx200_pmac_mask
	movq	_PMAC_HD_CTL_RST@GOTPCREL(%rip), %rax
	movq	_PMAC_HD_CTL_AST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_PMAC_HD_CTL_RXSH@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_PMAC_HD_CTL_AS@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_PMAC_HD_CTL_AC@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_PMAC_HD_CTL_RC@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_PMAC_HD_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_xrx200_pmac_mask
	leaq	24(%r14), %rsi
	movq	_xrx200_poll_rx@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	$32, %ecx
	callq	_netif_napi_add
	movq	%r14, %rsi
	addq	$8, %rsi
	movq	_xrx200_tx_housekeeping@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	$32, %ecx
	callq	_netif_napi_add
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	%r13, %rdi
	callq	_register_netdev
	testl	%eax, %eax
	je	LBB0_12
## %bb.21:
	movl	%eax, %r15d
	movq	(%r14), %rdi
	callq	_clk_disable_unprepare
	movl	%r15d, %ebx
LBB0_22:
	movq	%r14, %rdi
	callq	_xrx200_hw_cleanup
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_xrx200_netdev_ops,4,2          ## @xrx200_netdev_ops
	.comm	_ETH_ZLEN,4,2                   ## @ETH_ZLEN
	.comm	_XRX200_DMA_DATA_LEN,4,2        ## @XRX200_DMA_DATA_LEN
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to get resources\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.1:                               ## @.str.1
	.asciz	"failed to request and remap io ranges\n"

L_.str.2:                               ## @.str.2
	.asciz	"rx"

L_.str.3:                               ## @.str.3
	.asciz	"tx"

L_.str.4:                               ## @.str.4
	.asciz	"failed to get clock\n"

	.comm	_PMAC_RX_IPG_MASK,4,2           ## @PMAC_RX_IPG_MASK
	.comm	_PMAC_RX_IPG,4,2                ## @PMAC_RX_IPG
	.comm	_PMAC_HD_CTL_RST,4,2            ## @PMAC_HD_CTL_RST
	.comm	_PMAC_HD_CTL_AST,4,2            ## @PMAC_HD_CTL_AST
	.comm	_PMAC_HD_CTL_RXSH,4,2           ## @PMAC_HD_CTL_RXSH
	.comm	_PMAC_HD_CTL_AS,4,2             ## @PMAC_HD_CTL_AS
	.comm	_PMAC_HD_CTL_AC,4,2             ## @PMAC_HD_CTL_AC
	.comm	_PMAC_HD_CTL_RC,4,2             ## @PMAC_HD_CTL_RC
	.comm	_PMAC_HD_CTL,4,2                ## @PMAC_HD_CTL
	.comm	_xrx200_poll_rx,4,2             ## @xrx200_poll_rx
	.comm	_xrx200_tx_housekeeping,4,2     ## @xrx200_tx_housekeeping
	.no_dead_strip	_xrx200_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xrx200_probe
_xrx200_probe:                          ; @xrx200_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
	ldr	x22, [x0]
	mov	w1, #64
	bl	_devm_alloc_etherdev
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	bl	_netdev_priv
	mov	x19, x0
	stp	x20, x21, [x0, #48]
Lloh0:
	adrp	x8, _xrx200_netdev_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _xrx200_netdev_ops@GOTPAGEOFF]
	str	x8, [x21, #16]
	mov	x0, x21
	mov	x1, x20
	bl	_SET_NETDEV_DEV
Lloh2:
	adrp	x8, _ETH_ZLEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ETH_ZLEN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _XRX200_DMA_DATA_LEN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _XRX200_DMA_DATA_LEN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #4]
Lloh8:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_6
; %bb.2:
	mov	x1, x0
	mov	x0, x20
	bl	_devm_ioremap_resource
	str	x0, [x19, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.3:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19, #40]
LBB0_4:
	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	_PTR_ERR
LBB0_5:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_9
LBB0_7:
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_platform_get_irq_byname
	str	x0, [x19, #32]
	tbnz	x0, #63, LBB0_9
; %bb.8:
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_platform_get_irq_byname
	str	x0, [x19, #16]
	tbz	x0, #63, LBB0_12
LBB0_9:
Lloh21:
	adrp	x8, _ENOENT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_11:
	mov	x0, x22
	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_12:
	mov	x0, x20
	mov	x1, #0
	bl	_devm_clk_get
	str	x0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_14
; %bb.13:
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19]
	b	LBB0_4
LBB0_14:
	mov	x0, x22
	bl	_of_get_mac_address
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_16
; %bb.15:
	mov	x0, x21
	bl	_eth_hw_addr_random
	b	LBB0_17
LBB0_16:
	ldr	w0, [x21]
	mov	x1, x22
	bl	_ether_addr_copy
LBB0_17:
	mov	x0, x19
	bl	_xrx200_dma_init
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.18:
	ldr	x0, [x19]
	bl	_clk_prepare_enable
	mov	x22, x0
	cbnz	w0, LBB0_21
; %bb.19:
Lloh25:
	adrp	x8, _PMAC_RX_IPG_MASK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PMAC_RX_IPG_MASK@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x8, _PMAC_RX_IPG@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PMAC_RX_IPG@GOTPAGEOFF]
Lloh30:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #11
	bl	_xrx200_pmac_mask
Lloh31:
	adrp	x8, _PMAC_HD_CTL_RST@GOTPAGE
Lloh32:
	ldr	x8, [x8, _PMAC_HD_CTL_RST@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _PMAC_HD_CTL_AST@GOTPAGE
Lloh35:
	ldr	x9, [x9, _PMAC_HD_CTL_AST@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
Lloh37:
	adrp	x10, _PMAC_HD_CTL_RXSH@GOTPAGE
Lloh38:
	ldr	x10, [x10, _PMAC_HD_CTL_RXSH@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh39:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh40:
	adrp	x9, _PMAC_HD_CTL_AS@GOTPAGE
Lloh41:
	ldr	x9, [x9, _PMAC_HD_CTL_AS@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh43:
	adrp	x9, _PMAC_HD_CTL_AC@GOTPAGE
Lloh44:
	ldr	x9, [x9, _PMAC_HD_CTL_AC@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
Lloh46:
	adrp	x10, _PMAC_HD_CTL_RC@GOTPAGE
Lloh47:
	ldr	x10, [x10, _PMAC_HD_CTL_RC@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh48:
	ldr	w9, [x10]
	orr	w2, w8, w9
Lloh49:
	adrp	x8, _PMAC_HD_CTL@GOTPAGE
Lloh50:
	ldr	x8, [x8, _PMAC_HD_CTL@GOTPAGEOFF]
Lloh51:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_xrx200_pmac_mask
	add	x1, x19, #24
Lloh52:
	adrp	x8, _xrx200_poll_rx@GOTPAGE
Lloh53:
	ldr	x8, [x8, _xrx200_poll_rx@GOTPAGEOFF]
Lloh54:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w3, #32
	bl	_netif_napi_add
	add	x1, x19, #8
Lloh55:
	adrp	x8, _xrx200_tx_housekeeping@GOTPAGE
Lloh56:
	ldr	x8, [x8, _xrx200_tx_housekeeping@GOTPAGEOFF]
Lloh57:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w3, #32
	bl	_netif_napi_add
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	mov	x0, x21
	bl	_register_netdev
	mov	x22, x0
	cbz	w0, LBB0_11
; %bb.20:
	ldr	x0, [x19]
	bl	_clk_disable_unprepare
LBB0_21:
	mov	x0, x19
	bl	_xrx200_hw_cleanup
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_xrx200_netdev_ops,4,2          ; @xrx200_netdev_ops
	.comm	_ETH_ZLEN,4,2                   ; @ETH_ZLEN
	.comm	_XRX200_DMA_DATA_LEN,4,2        ; @XRX200_DMA_DATA_LEN
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to get resources\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.1:                               ; @.str.1
	.asciz	"failed to request and remap io ranges\n"

l_.str.2:                               ; @.str.2
	.asciz	"rx"

l_.str.3:                               ; @.str.3
	.asciz	"tx"

l_.str.4:                               ; @.str.4
	.asciz	"failed to get clock\n"

	.comm	_PMAC_RX_IPG_MASK,4,2           ; @PMAC_RX_IPG_MASK
	.comm	_PMAC_RX_IPG,4,2                ; @PMAC_RX_IPG
	.comm	_PMAC_HD_CTL_RST,4,2            ; @PMAC_HD_CTL_RST
	.comm	_PMAC_HD_CTL_AST,4,2            ; @PMAC_HD_CTL_AST
	.comm	_PMAC_HD_CTL_RXSH,4,2           ; @PMAC_HD_CTL_RXSH
	.comm	_PMAC_HD_CTL_AS,4,2             ; @PMAC_HD_CTL_AS
	.comm	_PMAC_HD_CTL_AC,4,2             ; @PMAC_HD_CTL_AC
	.comm	_PMAC_HD_CTL_RC,4,2             ; @PMAC_HD_CTL_RC
	.comm	_PMAC_HD_CTL,4,2                ; @PMAC_HD_CTL
	.comm	_xrx200_poll_rx,4,2             ; @xrx200_poll_rx
	.comm	_xrx200_tx_housekeeping,4,2     ; @xrx200_tx_housekeeping
	.no_dead_strip	_xrx200_probe
.subsections_via_symbols
