	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_umac
_init_umac:                             ## @init_umac
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %r14
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	movq	%rbx, %rdi
	callq	_reset_umac
	movq	_MIB_RESET_RX@GOTPCREL(%rip), %rax
	movq	_MIB_RESET_TX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_MIB_RESET_RUNT@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_UMAC_MIB_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_bcmgenet_umac_writel
	movl	(%r15), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_bcmgenet_umac_writel
	movq	_ENET_MAX_MTU_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_UMAC_MAX_FRAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_bcmgenet_umac_writel
	movq	_RBUF_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_bcmgenet_rbuf_readl
	movq	_RBUF_ALIGN_2B@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_bcmgenet_rbuf_writel
	movq	%rbx, %rdi
	callq	_GENET_IS_V1
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_GENET_IS_V2
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	_RBUF_TBUF_SIZE_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_bcmgenet_rbuf_writel
LBB0_3:
	movq	%rbx, %rdi
	callq	_bcmgenet_intr_disable
	movq	(%rbx), %rax
	movq	_PHY_INTERFACE_MODE_MOCA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_bcmgenet_bp_mc_get
	movl	%eax, %r15d
	movq	8(%rbx), %rax
	movl	8(%rax), %edi
	callq	_BIT
	orl	%eax, %r15d
	movl	16(%rbx), %edi
	callq	_netif_is_multiqueue
	movq	8(%rbx), %rcx
	movl	(%rcx), %esi
	movl	%esi, %ecx
	orl	%r15d, %ecx
	notl	%esi
	andl	%r15d, %esi
	testq	%rax, %rax
	cmovnel	%ecx, %esi
	movq	%rbx, %rdi
	callq	_bcmgenet_bp_mc_set
LBB0_5:
	movq	8(%rbx), %rax
	movq	_GENET_HAS_MDIO_INTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	4(%rax), %ecx
	movq	_UMAC_IRQ_MDIO_DONE@GOTPCREL(%rip), %rax
	movq	_UMAC_IRQ_MDIO_ERROR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rax), %esi
	testl	%ecx, %ecx
	cmovel	%ecx, %esi
	movq	_INTRL2_CPU_MASK_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_bcmgenet_intrl2_0_writel
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bcmgenet: init_umac\n"

	.comm	_MIB_RESET_RX,4,2               ## @MIB_RESET_RX
	.comm	_MIB_RESET_TX,4,2               ## @MIB_RESET_TX
	.comm	_MIB_RESET_RUNT,4,2             ## @MIB_RESET_RUNT
	.comm	_UMAC_MIB_CTRL,4,2              ## @UMAC_MIB_CTRL
	.comm	_ENET_MAX_MTU_SIZE,4,2          ## @ENET_MAX_MTU_SIZE
	.comm	_UMAC_MAX_FRAME_LEN,4,2         ## @UMAC_MAX_FRAME_LEN
	.comm	_RBUF_CTRL,4,2                  ## @RBUF_CTRL
	.comm	_RBUF_ALIGN_2B,4,2              ## @RBUF_ALIGN_2B
	.comm	_RBUF_TBUF_SIZE_CTRL,4,2        ## @RBUF_TBUF_SIZE_CTRL
	.comm	_PHY_INTERFACE_MODE_MOCA,8,3    ## @PHY_INTERFACE_MODE_MOCA
	.comm	_GENET_HAS_MDIO_INTR,4,2        ## @GENET_HAS_MDIO_INTR
	.comm	_UMAC_IRQ_MDIO_DONE,4,2         ## @UMAC_IRQ_MDIO_DONE
	.comm	_UMAC_IRQ_MDIO_ERROR,4,2        ## @UMAC_IRQ_MDIO_ERROR
	.comm	_INTRL2_CPU_MASK_CLEAR,4,2      ## @INTRL2_CPU_MASK_CLEAR
L_.str.1:                               ## @.str.1
	.asciz	"done init umac\n"

	.no_dead_strip	_init_umac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_umac
_init_umac:                             ; @init_umac
	.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	x19, [x0, #24]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	mov	x0, x20
	bl	_reset_umac
Lloh2:
	adrp	x8, _MIB_RESET_RX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MIB_RESET_RX@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _MIB_RESET_TX@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MIB_RESET_TX@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _MIB_RESET_RUNT@GOTPAGE
Lloh9:
	ldr	x10, [x10, _MIB_RESET_RUNT@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh10:
	ldr	w9, [x10]
	orr	w1, w8, w9
Lloh11:
	adrp	x21, _UMAC_MIB_CTRL@GOTPAGE
Lloh12:
	ldr	x21, [x21, _UMAC_MIB_CTRL@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x20
	bl	_bcmgenet_umac_writel
	ldr	w2, [x21]
	mov	x0, x20
	mov	w1, #0
	bl	_bcmgenet_umac_writel
Lloh13:
	adrp	x8, _ENET_MAX_MTU_SIZE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENET_MAX_MTU_SIZE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _UMAC_MAX_FRAME_LEN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _UMAC_MAX_FRAME_LEN@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_bcmgenet_umac_writel
Lloh19:
	adrp	x21, _RBUF_CTRL@GOTPAGE
Lloh20:
	ldr	x21, [x21, _RBUF_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_bcmgenet_rbuf_readl
Lloh21:
	adrp	x8, _RBUF_ALIGN_2B@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RBUF_ALIGN_2B@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	orr	w1, w8, w0
	ldr	w2, [x21]
	mov	x0, x20
	bl	_bcmgenet_rbuf_writel
	mov	x0, x20
	bl	_GENET_IS_V1
	cbnz	w0, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_GENET_IS_V2
	cbnz	w0, LBB0_3
; %bb.2:
Lloh24:
	adrp	x8, _RBUF_TBUF_SIZE_CTRL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RBUF_TBUF_SIZE_CTRL@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #1
	bl	_bcmgenet_rbuf_writel
LBB0_3:
	mov	x0, x20
	bl	_bcmgenet_intr_disable
	ldr	x8, [x20]
Lloh27:
	adrp	x9, _PHY_INTERFACE_MODE_MOCA@GOTPAGE
Lloh28:
	ldr	x9, [x9, _PHY_INTERFACE_MODE_MOCA@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_bcmgenet_bp_mc_get
	mov	x21, x0
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #8]
	bl	_BIT
	orr	w21, w0, w21
	ldr	w0, [x20, #16]
	bl	_netif_is_multiqueue
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	orr	w9, w8, w21
	bic	w8, w21, w8
	cmp	x0, #0
	csel	w1, w8, w9, eq
	mov	x0, x20
	bl	_bcmgenet_bp_mc_set
LBB0_5:
	ldr	x8, [x20, #8]
	ldr	w8, [x8, #4]
Lloh30:
	adrp	x9, _GENET_HAS_MDIO_INTR@GOTPAGE
Lloh31:
	ldr	x9, [x9, _GENET_HAS_MDIO_INTR@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
Lloh33:
	adrp	x10, _UMAC_IRQ_MDIO_DONE@GOTPAGE
Lloh34:
	ldr	x10, [x10, _UMAC_IRQ_MDIO_DONE@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
Lloh36:
	adrp	x11, _UMAC_IRQ_MDIO_ERROR@GOTPAGE
Lloh37:
	ldr	x11, [x11, _UMAC_IRQ_MDIO_ERROR@GOTPAGEOFF]
Lloh38:
	ldr	w11, [x11]
	orr	w10, w11, w10
	tst	w9, w8
	csel	w1, wzr, w10, eq
Lloh39:
	adrp	x8, _INTRL2_CPU_MASK_CLEAR@GOTPAGE
Lloh40:
	ldr	x8, [x8, _INTRL2_CPU_MASK_CLEAR@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_bcmgenet_intrl2_0_writel
Lloh42:
	adrp	x1, l_.str.1@PAGE
Lloh43:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	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	_dev_dbg
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bcmgenet: init_umac\n"

	.comm	_MIB_RESET_RX,4,2               ; @MIB_RESET_RX
	.comm	_MIB_RESET_TX,4,2               ; @MIB_RESET_TX
	.comm	_MIB_RESET_RUNT,4,2             ; @MIB_RESET_RUNT
	.comm	_UMAC_MIB_CTRL,4,2              ; @UMAC_MIB_CTRL
	.comm	_ENET_MAX_MTU_SIZE,4,2          ; @ENET_MAX_MTU_SIZE
	.comm	_UMAC_MAX_FRAME_LEN,4,2         ; @UMAC_MAX_FRAME_LEN
	.comm	_RBUF_CTRL,4,2                  ; @RBUF_CTRL
	.comm	_RBUF_ALIGN_2B,4,2              ; @RBUF_ALIGN_2B
	.comm	_RBUF_TBUF_SIZE_CTRL,4,2        ; @RBUF_TBUF_SIZE_CTRL
	.comm	_PHY_INTERFACE_MODE_MOCA,8,3    ; @PHY_INTERFACE_MODE_MOCA
	.comm	_GENET_HAS_MDIO_INTR,4,2        ; @GENET_HAS_MDIO_INTR
	.comm	_UMAC_IRQ_MDIO_DONE,4,2         ; @UMAC_IRQ_MDIO_DONE
	.comm	_UMAC_IRQ_MDIO_ERROR,4,2        ; @UMAC_IRQ_MDIO_ERROR
	.comm	_INTRL2_CPU_MASK_CLEAR,4,2      ; @INTRL2_CPU_MASK_CLEAR
l_.str.1:                               ; @.str.1
	.asciz	"done init umac\n"

	.no_dead_strip	_init_umac
.subsections_via_symbols
