	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xlgmac_hw_init
_xlgmac_hw_init:                        ## @xlgmac_hw_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_xlgmac_flush_tx_queues
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_xlgmac_config_dma_bus
	movq	%rbx, %rdi
	callq	_xlgmac_config_osp_mode
	movq	%rbx, %rdi
	callq	_xlgmac_config_pblx8
	movq	%rbx, %rdi
	callq	_xlgmac_config_tx_pbl_val
	movq	%rbx, %rdi
	callq	_xlgmac_config_rx_pbl_val
	movq	%rbx, %rdi
	callq	_xlgmac_config_rx_coalesce
	movq	%rbx, %rdi
	callq	_xlgmac_config_tx_coalesce
	movq	%rbx, %rdi
	callq	_xlgmac_config_rx_buffer_size
	movq	%rbx, %rdi
	callq	_xlgmac_config_tso_mode
	movq	%rbx, %rdi
	callq	_xlgmac_config_sph_mode
	movq	%rbx, %rdi
	callq	_xlgmac_config_rss
	movq	%rbx, %rdi
	callq	*24(%rbx)
	movq	%rbx, %rdi
	callq	*16(%rbx)
	movq	%rbx, %rdi
	callq	_xlgmac_enable_dma_interrupts
	movq	%rbx, %rdi
	callq	_xlgmac_config_mtl_mode
	movq	%rbx, %rdi
	callq	_xlgmac_config_queue_mapping
	movl	12(%rbx), %esi
	movq	%rbx, %rdi
	callq	_xlgmac_config_tsf_mode
	movl	8(%rbx), %esi
	movq	%rbx, %rdi
	callq	_xlgmac_config_rsf_mode
	movl	4(%rbx), %esi
	movq	%rbx, %rdi
	callq	_xlgmac_config_tx_threshold
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	callq	_xlgmac_config_rx_threshold
	movq	%rbx, %rdi
	callq	_xlgmac_config_tx_fifo_size
	movq	%rbx, %rdi
	callq	_xlgmac_config_rx_fifo_size
	movq	%rbx, %rdi
	callq	_xlgmac_config_flow_control_threshold
	movq	%rbx, %rdi
	callq	_xlgmac_config_rx_fep_enable
	movq	%rbx, %rdi
	callq	_xlgmac_config_rx_fup_enable
	movq	%rbx, %rdi
	callq	_xlgmac_enable_mtl_interrupts
	movq	%rbx, %rdi
	callq	_xlgmac_config_mac_address
	movq	%rbx, %rdi
	callq	_xlgmac_config_rx_mode
	movq	%rbx, %rdi
	callq	_xlgmac_config_jumbo_enable
	movq	%rbx, %rdi
	callq	_xlgmac_config_flow_control
	movq	%rbx, %rdi
	callq	_xlgmac_config_mac_speed
	movq	%rbx, %rdi
	callq	_xlgmac_config_checksum_offload
	movq	%rbx, %rdi
	callq	_xlgmac_config_vlan_support
	movq	%rbx, %rdi
	callq	_xlgmac_config_mmc
	movq	%rbx, %rdi
	callq	_xlgmac_enable_mac_interrupts
LBB0_2:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_xlgmac_hw_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xlgmac_hw_init
_xlgmac_hw_init:                        ; @xlgmac_hw_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
	bl	_xlgmac_flush_tx_queues
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_xlgmac_config_dma_bus
	mov	x0, x19
	bl	_xlgmac_config_osp_mode
	mov	x0, x19
	bl	_xlgmac_config_pblx8
	mov	x0, x19
	bl	_xlgmac_config_tx_pbl_val
	mov	x0, x19
	bl	_xlgmac_config_rx_pbl_val
	mov	x0, x19
	bl	_xlgmac_config_rx_coalesce
	mov	x0, x19
	bl	_xlgmac_config_tx_coalesce
	mov	x0, x19
	bl	_xlgmac_config_rx_buffer_size
	mov	x0, x19
	bl	_xlgmac_config_tso_mode
	mov	x0, x19
	bl	_xlgmac_config_sph_mode
	mov	x0, x19
	bl	_xlgmac_config_rss
	ldr	x8, [x19, #24]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #16]
	mov	x0, x19
	blr	x8
	mov	x0, x19
	bl	_xlgmac_enable_dma_interrupts
	mov	x0, x19
	bl	_xlgmac_config_mtl_mode
	mov	x0, x19
	bl	_xlgmac_config_queue_mapping
	ldr	w1, [x19, #12]
	mov	x0, x19
	bl	_xlgmac_config_tsf_mode
	ldr	w1, [x19, #8]
	mov	x0, x19
	bl	_xlgmac_config_rsf_mode
	ldr	w1, [x19, #4]
	mov	x0, x19
	bl	_xlgmac_config_tx_threshold
	ldr	w1, [x19]
	mov	x0, x19
	bl	_xlgmac_config_rx_threshold
	mov	x0, x19
	bl	_xlgmac_config_tx_fifo_size
	mov	x0, x19
	bl	_xlgmac_config_rx_fifo_size
	mov	x0, x19
	bl	_xlgmac_config_flow_control_threshold
	mov	x0, x19
	bl	_xlgmac_config_rx_fep_enable
	mov	x0, x19
	bl	_xlgmac_config_rx_fup_enable
	mov	x0, x19
	bl	_xlgmac_enable_mtl_interrupts
	mov	x0, x19
	bl	_xlgmac_config_mac_address
	mov	x0, x19
	bl	_xlgmac_config_rx_mode
	mov	x0, x19
	bl	_xlgmac_config_jumbo_enable
	mov	x0, x19
	bl	_xlgmac_config_flow_control
	mov	x0, x19
	bl	_xlgmac_config_mac_speed
	mov	x0, x19
	bl	_xlgmac_config_checksum_offload
	mov	x0, x19
	bl	_xlgmac_config_vlan_support
	mov	x0, x19
	bl	_xlgmac_config_mmc
	mov	x0, x19
	bl	_xlgmac_enable_mac_interrupts
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_xlgmac_hw_init
.subsections_via_symbols
