	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enetc_pci_mdio_probe
_enetc_pci_mdio_probe:                  ## @enetc_pci_mdio_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, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_devm_mdiobus_alloc_size
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	movq	_ENETC_MDIO_BUS_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movq	_enetc_mdio_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r15)
	movq	_enetc_mdio_write@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	%r14, 16(%r15)
	movq	8(%r15), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, (%rax)
	movl	(%r15), %r13d
	movq	_MII_BUS_ID_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_dev_name
	leaq	L_.str(%rip), %rdx
	movl	%r13d, %edi
	movl	%ebx, %esi
	movq	%rax, %rcx
	callq	_snprintf
	movq	%r14, %rdi
	callq	_pcie_flr
	movq	%r14, %rdi
	callq	_pci_enable_device_mem
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_14
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	_KBUILD_MODNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_pci_request_region
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_13
LBB0_7:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_pci_iomap
	movl	%eax, (%r12)
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_of_mdiobus_register
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movl	%eax, %ebx
	movq	(%r13), %rax
	movl	(%rax), %edi
	callq	_iounmap
	jmp	LBB0_12
LBB0_8:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_12:
	movq	%r14, %rdi
	callq	_pci_release_mem_regions
LBB0_13:
	movq	%r14, %rdi
	callq	_pci_disable_device
	jmp	LBB0_14
LBB0_10:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_pci_set_drvdata
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ENETC_MDIO_BUS_NAME,4,2        ## @ENETC_MDIO_BUS_NAME
	.comm	_enetc_mdio_read,4,2            ## @enetc_mdio_read
	.comm	_enetc_mdio_write,4,2           ## @enetc_mdio_write
	.comm	_MII_BUS_ID_SIZE,4,2            ## @MII_BUS_ID_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

L_.str.1:                               ## @.str.1
	.asciz	"device enable failed\n"

	.comm	_KBUILD_MODNAME,4,2             ## @KBUILD_MODNAME
L_.str.2:                               ## @.str.2
	.asciz	"pci_request_region failed\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.3:                               ## @.str.3
	.asciz	"iomap failed\n"

	.no_dead_strip	_enetc_pci_mdio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enetc_pci_mdio_probe
_enetc_pci_mdio_probe:                  ; @enetc_pci_mdio_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	mov	x0, x19
	mov	w1, #8
	bl	_devm_mdiobus_alloc_size
	cbz	x0, LBB0_4
; %bb.2:
	mov	x20, x0
Lloh3:
	adrp	x8, _ENETC_MDIO_BUS_NAME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENETC_MDIO_BUS_NAME@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0, #32]
Lloh6:
	adrp	x8, _enetc_mdio_read@GOTPAGE
Lloh7:
	ldr	x8, [x8, _enetc_mdio_read@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _enetc_mdio_write@GOTPAGE
Lloh10:
	ldr	x9, [x9, _enetc_mdio_write@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #24]
	str	x19, [x0, #16]
	ldr	x24, [x0, #8]
	str	x21, [x24]
	ldr	w22, [x0]
Lloh12:
	adrp	x8, _MII_BUS_ID_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MII_BUS_ID_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w23, [x8]
	mov	x0, x19
	bl	_dev_name
	mov	x3, x0
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	mov	x1, x23
	bl	_snprintf
	mov	x0, x19
	bl	_pcie_flr
	mov	x0, x19
	bl	_pci_enable_device_mem
	cbz	w0, LBB0_6
; %bb.3:
	mov	x22, x0
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_5
LBB0_4:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_5:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh22:
	adrp	x8, _KBUILD_MODNAME@GOTPAGE
Lloh23:
	ldr	x8, [x8, _KBUILD_MODNAME@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_pci_request_region
	cbz	w0, LBB0_8
; %bb.7:
	mov	x22, x0
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_13
LBB0_8:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_pci_iomap
	str	w0, [x21]
	cbz	w0, LBB0_11
; %bb.9:
	ldr	w1, [x19]
	mov	x0, x20
	bl	_of_mdiobus_register
	mov	x22, x0
	cbz	w0, LBB0_14
; %bb.10:
	ldr	x8, [x24]
	ldr	w0, [x8]
	bl	_iounmap
	b	LBB0_12
LBB0_11:
Lloh27:
	adrp	x8, _ENXIO@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w22, w8
Lloh30:
	adrp	x1, l_.str.3@PAGE
Lloh31:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_12:
	mov	x0, x19
	bl	_pci_release_mem_regions
LBB0_13:
	mov	x0, x19
	bl	_pci_disable_device
	b	LBB0_5
LBB0_14:
	mov	x0, x19
	mov	x1, x20
	bl	_pci_set_drvdata
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ENETC_MDIO_BUS_NAME,4,2        ; @ENETC_MDIO_BUS_NAME
	.comm	_enetc_mdio_read,4,2            ; @enetc_mdio_read
	.comm	_enetc_mdio_write,4,2           ; @enetc_mdio_write
	.comm	_MII_BUS_ID_SIZE,4,2            ; @MII_BUS_ID_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

l_.str.1:                               ; @.str.1
	.asciz	"device enable failed\n"

	.comm	_KBUILD_MODNAME,4,2             ; @KBUILD_MODNAME
l_.str.2:                               ; @.str.2
	.asciz	"pci_request_region failed\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.3:                               ; @.str.3
	.asciz	"iomap failed\n"

	.no_dead_strip	_enetc_pci_mdio_probe
.subsections_via_symbols
