	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan743x_pcidev_probe
_lan743x_pcidev_probe:                  ## @lan743x_pcidev_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, %r15
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movl	$16, %esi
	callq	_devm_alloc_etherdev
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_SET_NETDEV_DEV
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_pci_set_drvdata
	movq	%r12, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%r12, 8(%rax)
	movq	_NETIF_MSG_DRV@GOTPCREL(%rip), %rax
	movq	_NETIF_MSG_PROBE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_NETIF_MSG_IFUP@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_NETIF_MSG_IFDOWN@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_NETIF_MSG_TX_QUEUED@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%r14)
	movq	_LAN743X_MAX_FRAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_lan743x_pci_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.2:
	movq	%r14, %rdi
	callq	_lan743x_csr_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_lan743x_hardware_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:
	movq	%r14, %rdi
	callq	_lan743x_mdiobus_init
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
LBB0_7:
	movq	%r14, %rdi
	callq	_lan743x_hardware_cleanup
LBB0_8:
	movq	%r14, %rdi
	callq	_lan743x_pci_cleanup
LBB0_9:
	leaq	L_.str(%rip), %rdi
	callq	_pr_warn
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	8(%r14), %rax
	movq	_lan743x_netdev_ops@GOTPCREL(%rip), %rcx
	movq	%rcx, 16(%rax)
	movq	_lan743x_ethtool_ops@GOTPCREL(%rip), %rcx
	movq	%rcx, 8(%rax)
	movq	_NETIF_F_SG@GOTPCREL(%rip), %rcx
	movq	_NETIF_F_TSO@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_NETIF_F_HW_CSUM@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, (%rax)
	movl	%edx, 4(%rax)
	movq	%r12, %rdi
	callq	_netif_carrier_off
	movq	8(%r14), %rdi
	callq	_register_netdev
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_10
## %bb.6:
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_lan743x_mdiobus_cleanup
	movl	%r15d, %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_NETIF_MSG_DRV,4,2              ## @NETIF_MSG_DRV
	.comm	_NETIF_MSG_PROBE,4,2            ## @NETIF_MSG_PROBE
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.comm	_NETIF_MSG_IFUP,4,2             ## @NETIF_MSG_IFUP
	.comm	_NETIF_MSG_IFDOWN,4,2           ## @NETIF_MSG_IFDOWN
	.comm	_NETIF_MSG_TX_QUEUED,4,2        ## @NETIF_MSG_TX_QUEUED
	.comm	_LAN743X_MAX_FRAME_SIZE,4,2     ## @LAN743X_MAX_FRAME_SIZE
	.comm	_lan743x_netdev_ops,4,2         ## @lan743x_netdev_ops
	.comm	_lan743x_ethtool_ops,4,2        ## @lan743x_ethtool_ops
	.comm	_NETIF_F_SG,4,2                 ## @NETIF_F_SG
	.comm	_NETIF_F_TSO,4,2                ## @NETIF_F_TSO
	.comm	_NETIF_F_HW_CSUM,4,2            ## @NETIF_F_HW_CSUM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Initialization failed\n"

	.no_dead_strip	_lan743x_pcidev_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lan743x_pcidev_probe
_lan743x_pcidev_probe:                  ; @lan743x_pcidev_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	x21, x0
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	mov	w1, #16
	bl	_devm_alloc_etherdev
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	mov	x1, x21
	bl	_SET_NETDEV_DEV
	mov	x0, x21
	mov	x1, x20
	bl	_pci_set_drvdata
	mov	x0, x20
	bl	_netdev_priv
	mov	x19, x0
Lloh3:
	adrp	x8, _NETIF_MSG_DRV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NETIF_MSG_DRV@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _NETIF_MSG_PROBE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NETIF_MSG_PROBE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _NETIF_MSG_LINK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _NETIF_MSG_IFUP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NETIF_MSG_IFUP@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _NETIF_MSG_IFDOWN@GOTPAGE
Lloh16:
	ldr	x9, [x9, _NETIF_MSG_IFDOWN@GOTPAGEOFF]
	str	x20, [x0, #8]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _NETIF_MSG_TX_QUEUED@GOTPAGE
Lloh19:
	ldr	x9, [x9, _NETIF_MSG_TX_QUEUED@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x0]
Lloh21:
	adrp	x8, _LAN743X_MAX_FRAME_SIZE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _LAN743X_MAX_FRAME_SIZE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x20, #24]
	mov	x1, x21
	bl	_lan743x_pci_init
	mov	x22, x0
	cbnz	w0, LBB0_8
; %bb.2:
	mov	x0, x19
	bl	_lan743x_csr_init
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.3:
	mov	x0, x19
	mov	x1, x21
	bl	_lan743x_hardware_init
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_lan743x_mdiobus_init
	mov	x22, x0
	cbz	w0, LBB0_10
LBB0_5:
	mov	x0, x19
	bl	_lan743x_hardware_cleanup
LBB0_6:
	mov	x0, x19
	bl	_lan743x_pci_cleanup
	b	LBB0_8
LBB0_7:
	neg	w22, w19
LBB0_8:
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warn
LBB0_9:
	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_10:
Lloh26:
	adrp	x8, _lan743x_netdev_ops@GOTPAGE
Lloh27:
	ldr	x8, [x8, _lan743x_netdev_ops@GOTPAGEOFF]
	ldr	x9, [x19, #8]
Lloh28:
	adrp	x10, _lan743x_ethtool_ops@GOTPAGE
Lloh29:
	ldr	x10, [x10, _lan743x_ethtool_ops@GOTPAGEOFF]
Lloh30:
	adrp	x11, _NETIF_F_SG@GOTPAGE
Lloh31:
	ldr	x11, [x11, _NETIF_F_SG@GOTPAGEOFF]
	stp	x10, x8, [x9, #8]
Lloh32:
	ldr	w8, [x11]
Lloh33:
	adrp	x10, _NETIF_F_TSO@GOTPAGE
Lloh34:
	ldr	x10, [x10, _NETIF_F_TSO@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	orr	w8, w10, w8
Lloh36:
	adrp	x10, _NETIF_F_HW_CSUM@GOTPAGE
Lloh37:
	ldr	x10, [x10, _NETIF_F_HW_CSUM@GOTPAGEOFF]
Lloh38:
	ldr	w10, [x10]
	orr	w8, w8, w10
	stp	w8, w8, [x9]
	mov	x0, x20
	bl	_netif_carrier_off
	ldr	x0, [x19, #8]
	bl	_register_netdev
	tbnz	w0, #31, LBB0_12
; %bb.11:
	mov	w22, #0
	b	LBB0_9
LBB0_12:
	mov	x22, x0
	mov	x0, x19
	bl	_lan743x_mdiobus_cleanup
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_NETIF_MSG_DRV,4,2              ; @NETIF_MSG_DRV
	.comm	_NETIF_MSG_PROBE,4,2            ; @NETIF_MSG_PROBE
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.comm	_NETIF_MSG_IFUP,4,2             ; @NETIF_MSG_IFUP
	.comm	_NETIF_MSG_IFDOWN,4,2           ; @NETIF_MSG_IFDOWN
	.comm	_NETIF_MSG_TX_QUEUED,4,2        ; @NETIF_MSG_TX_QUEUED
	.comm	_LAN743X_MAX_FRAME_SIZE,4,2     ; @LAN743X_MAX_FRAME_SIZE
	.comm	_lan743x_netdev_ops,4,2         ; @lan743x_netdev_ops
	.comm	_lan743x_ethtool_ops,4,2        ; @lan743x_ethtool_ops
	.comm	_NETIF_F_SG,4,2                 ; @NETIF_F_SG
	.comm	_NETIF_F_TSO,4,2                ; @NETIF_F_TSO
	.comm	_NETIF_F_HW_CSUM,4,2            ; @NETIF_F_HW_CSUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Initialization failed\n"

	.no_dead_strip	_lan743x_pcidev_probe
.subsections_via_symbols
