	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan743x_hardware_init
_lan743x_hardware_init:                 ## @lan743x_hardware_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rdi)
	movq	_INT_EN_CLR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$-1, %edx
	callq	_lan743x_csr_write
	leaq	16(%rbx), %rdi
	callq	_mutex_init
	movq	%rbx, %rdi
	callq	_lan743x_gpio_init
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movq	%rbx, %rdi
	callq	_lan743x_mac_init
	testl	%eax, %eax
	jne	LBB0_9
## %bb.2:
	movq	%rbx, %rdi
	callq	_lan743x_phy_init
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	movq	%rbx, %rdi
	callq	_lan743x_ptp_init
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:
	movq	%rbx, %rdi
	callq	_lan743x_rfe_update_mac_address
	movq	%rbx, %rdi
	callq	_lan743x_dmac_init
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	movq	_LAN743X_USED_RX_CHANNELS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_8
## %bb.6:
	movq	8(%rbx), %rcx
	addq	$8, %rcx
	xorl	%edx, %edx
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, (%rcx)
	movl	%edx, -8(%rcx)
	incq	%rdx
	movslq	(%rax), %rsi
	addq	$16, %rcx
	cmpq	%rsi, %rdx
	jl	LBB0_7
LBB0_8:
	movq	(%rbx), %rdi
	movq	%rbx, 16(%rdi)
	movq	$0, 8(%rdi)
	callq	_spin_lock_init
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_EN_CLR,4,2                 ## @INT_EN_CLR
	.comm	_LAN743X_USED_RX_CHANNELS,4,2   ## @LAN743X_USED_RX_CHANNELS
	.no_dead_strip	_lan743x_hardware_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lan743x_hardware_init
_lan743x_hardware_init:                 ; @lan743x_hardware_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #24]
	ldr	w8, [x8]
	str	w8, [x0, #32]
Lloh0:
	adrp	x8, _INT_EN_CLR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_EN_CLR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #-1
	bl	_lan743x_csr_write
	add	x0, x19, #16
	bl	_mutex_init
	mov	x0, x19
	bl	_lan743x_gpio_init
	cbnz	w0, LBB0_9
; %bb.1:
	mov	x0, x19
	bl	_lan743x_mac_init
	cbnz	w0, LBB0_9
; %bb.2:
	mov	x0, x19
	bl	_lan743x_phy_init
	cbnz	w0, LBB0_9
; %bb.3:
	mov	x0, x19
	bl	_lan743x_ptp_init
	cbnz	w0, LBB0_9
; %bb.4:
	mov	x0, x19
	bl	_lan743x_rfe_update_mac_address
	mov	x0, x19
	bl	_lan743x_dmac_init
	cbnz	w0, LBB0_9
; %bb.5:
Lloh3:
	adrp	x8, _LAN743X_USED_RX_CHANNELS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LAN743X_USED_RX_CHANNELS@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x9, #0
	ldr	x10, [x19, #8]
	add	x10, x10, #8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	str	x19, [x10]
	stur	w9, [x10, #-8]
	add	x9, x9, #1
	ldrsw	x11, [x8]
	add	x10, x10, #16
	cmp	x9, x11
	b.lt	LBB0_7
LBB0_8:
	ldr	x0, [x19]
	stp	xzr, x19, [x0, #8]
	bl	_spin_lock_init
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_EN_CLR,4,2                 ; @INT_EN_CLR
	.comm	_LAN743X_USED_RX_CHANNELS,4,2   ; @LAN743X_USED_RX_CHANNELS
	.no_dead_strip	_lan743x_hardware_init
.subsections_via_symbols
