	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function niu_init_xif_bmac
_niu_init_xif_bmac:                     ## @niu_init_xif_bmac
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_BMAC_XIF_CONFIG_TX_OUTPUT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%rdi), %rcx
	movq	_LOOPBACK_MAC@GOTPCREL(%rip), %r8
	movq	_BMAC_XIF_CONFIG_MII_LOOPBACK@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, %edx
	orl	%eax, %edx
	notl	%esi
	andl	%eax, %esi
	cmpq	(%r8), %rcx
	cmovel	%edx, %esi
	movq	16(%rdi), %rax
	movq	_SPEED_1000@GOTPCREL(%rip), %r8
	movq	_BMAC_XIF_CONFIG_GMII_MODE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, %ecx
	orl	%esi, %ecx
	notl	%edx
	andl	%esi, %edx
	cmpq	(%r8), %rax
	cmovel	%ecx, %edx
	movq	_BMAC_XIF_CONFIG_LINK_LED@GOTPCREL(%rip), %rcx
	movq	_BMAC_XIF_CONFIG_LED_POLARITY@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rcx), %esi
	notl	%esi
	andl	%edx, %esi
	movl	(%rdi), %ecx
	movq	_NIU_FLAGS_10G@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_1
LBB0_4:
	movq	_BMAC_XIF_CONFIG_25MHZ_CLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %esi
LBB0_5:
	movq	_BMAC_XIF_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbp
	jmp	_nw64_mac                       ## TAILCALL
LBB0_1:
	movq	_NIU_FLAGS_FIBER@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	jne	LBB0_4
## %bb.2:
	movq	_SPEED_100@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_BMAC_XIF_CONFIG_25MHZ_CLOCK@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_BMAC_XIF_CONFIG_TX_OUTPUT_EN,4,2 ## @BMAC_XIF_CONFIG_TX_OUTPUT_EN
	.comm	_LOOPBACK_MAC,8,3               ## @LOOPBACK_MAC
	.comm	_BMAC_XIF_CONFIG_MII_LOOPBACK,4,2 ## @BMAC_XIF_CONFIG_MII_LOOPBACK
	.comm	_SPEED_1000,8,3                 ## @SPEED_1000
	.comm	_BMAC_XIF_CONFIG_GMII_MODE,4,2  ## @BMAC_XIF_CONFIG_GMII_MODE
	.comm	_BMAC_XIF_CONFIG_LINK_LED,4,2   ## @BMAC_XIF_CONFIG_LINK_LED
	.comm	_BMAC_XIF_CONFIG_LED_POLARITY,4,2 ## @BMAC_XIF_CONFIG_LED_POLARITY
	.comm	_NIU_FLAGS_10G,4,2              ## @NIU_FLAGS_10G
	.comm	_NIU_FLAGS_FIBER,4,2            ## @NIU_FLAGS_FIBER
	.comm	_SPEED_100,8,3                  ## @SPEED_100
	.comm	_BMAC_XIF_CONFIG_25MHZ_CLOCK,4,2 ## @BMAC_XIF_CONFIG_25MHZ_CLOCK
	.comm	_BMAC_XIF_CONFIG,4,2            ## @BMAC_XIF_CONFIG
	.no_dead_strip	_niu_init_xif_bmac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function niu_init_xif_bmac
_niu_init_xif_bmac:                     ; @niu_init_xif_bmac
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _BMAC_XIF_CONFIG_TX_OUTPUT_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BMAC_XIF_CONFIG_TX_OUTPUT_EN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _LOOPBACK_MAC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LOOPBACK_MAC@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _BMAC_XIF_CONFIG_MII_LOOPBACK@GOTPAGE
Lloh7:
	ldr	x10, [x10, _BMAC_XIF_CONFIG_MII_LOOPBACK@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w11, w10, w8
	bic	w10, w8, w10
	ldp	x12, x8, [x0, #8]
	cmp	x12, x9
	csel	w9, w11, w10, eq
Lloh9:
	adrp	x10, _SPEED_1000@GOTPAGE
Lloh10:
	ldr	x10, [x10, _SPEED_1000@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
Lloh12:
	adrp	x11, _BMAC_XIF_CONFIG_GMII_MODE@GOTPAGE
Lloh13:
	ldr	x11, [x11, _BMAC_XIF_CONFIG_GMII_MODE@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	orr	w12, w11, w9
	bic	w9, w9, w11
	cmp	x8, x10
Lloh15:
	adrp	x10, _BMAC_XIF_CONFIG_LINK_LED@GOTPAGE
Lloh16:
	ldr	x10, [x10, _BMAC_XIF_CONFIG_LINK_LED@GOTPAGEOFF]
	csel	w9, w12, w9, eq
Lloh17:
	ldr	w10, [x10]
Lloh18:
	adrp	x11, _BMAC_XIF_CONFIG_LED_POLARITY@GOTPAGE
Lloh19:
	ldr	x11, [x11, _BMAC_XIF_CONFIG_LED_POLARITY@GOTPAGEOFF]
Lloh20:
	ldr	w11, [x11]
	orr	w10, w11, w10
	bic	w9, w9, w10
	ldr	w10, [x0]
Lloh21:
	adrp	x11, _NIU_FLAGS_10G@GOTPAGE
Lloh22:
	ldr	x11, [x11, _NIU_FLAGS_10G@GOTPAGEOFF]
Lloh23:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_3
LBB0_1:
Lloh24:
	adrp	x8, _BMAC_XIF_CONFIG_25MHZ_CLOCK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BMAC_XIF_CONFIG_25MHZ_CLOCK@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	bic	w1, w9, w8
LBB0_2:
Lloh27:
	adrp	x8, _BMAC_XIF_CONFIG@GOTPAGE
Lloh28:
	ldr	x8, [x8, _BMAC_XIF_CONFIG@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	b	_nw64_mac
LBB0_3:
Lloh30:
	adrp	x11, _NIU_FLAGS_FIBER@GOTPAGE
Lloh31:
	ldr	x11, [x11, _NIU_FLAGS_FIBER@GOTPAGEOFF]
Lloh32:
	ldr	w11, [x11]
	tst	w11, w10
	b.ne	LBB0_1
; %bb.4:
Lloh33:
	adrp	x10, _SPEED_100@GOTPAGE
Lloh34:
	ldr	x10, [x10, _SPEED_100@GOTPAGEOFF]
Lloh35:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ne	LBB0_1
; %bb.5:
Lloh36:
	adrp	x8, _BMAC_XIF_CONFIG_25MHZ_CLOCK@GOTPAGE
Lloh37:
	ldr	x8, [x8, _BMAC_XIF_CONFIG_25MHZ_CLOCK@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	orr	w1, w8, w9
	b	LBB0_2
	.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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_BMAC_XIF_CONFIG_TX_OUTPUT_EN,4,2 ; @BMAC_XIF_CONFIG_TX_OUTPUT_EN
	.comm	_LOOPBACK_MAC,8,3               ; @LOOPBACK_MAC
	.comm	_BMAC_XIF_CONFIG_MII_LOOPBACK,4,2 ; @BMAC_XIF_CONFIG_MII_LOOPBACK
	.comm	_SPEED_1000,8,3                 ; @SPEED_1000
	.comm	_BMAC_XIF_CONFIG_GMII_MODE,4,2  ; @BMAC_XIF_CONFIG_GMII_MODE
	.comm	_BMAC_XIF_CONFIG_LINK_LED,4,2   ; @BMAC_XIF_CONFIG_LINK_LED
	.comm	_BMAC_XIF_CONFIG_LED_POLARITY,4,2 ; @BMAC_XIF_CONFIG_LED_POLARITY
	.comm	_NIU_FLAGS_10G,4,2              ; @NIU_FLAGS_10G
	.comm	_NIU_FLAGS_FIBER,4,2            ; @NIU_FLAGS_FIBER
	.comm	_SPEED_100,8,3                  ; @SPEED_100
	.comm	_BMAC_XIF_CONFIG_25MHZ_CLOCK,4,2 ; @BMAC_XIF_CONFIG_25MHZ_CLOCK
	.comm	_BMAC_XIF_CONFIG,4,2            ; @BMAC_XIF_CONFIG
	.no_dead_strip	_niu_init_xif_bmac
.subsections_via_symbols
