	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function niu_init_tx_bmac
_niu_init_tx_bmac:                      ## @niu_init_tx_bmac
	.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
	movl	%edx, %ebx
	movq	_BMAC_MIN_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_nw64_mac
	movq	_BMAC_MAX_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_nw64_mac
	movq	_BTXMAC_STATUS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$-1, %esi
	callq	_nw64_mac
	movq	_BMAC_CTRL_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$34824, %esi                    ## imm = 0x8808
	callq	_nw64_mac
	movq	_BMAC_PREAMBLE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$7, %esi
	callq	_nw64_mac
	movq	_BTXMAC_CONFIG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_nr64_mac
	movq	_BTXMAC_CONFIG_FCS_DISABLE@GOTPCREL(%rip), %rcx
	movq	_BTXMAC_CONFIG_ENABLE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_nw64_mac                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BMAC_MIN_FRAME,4,2             ## @BMAC_MIN_FRAME
	.comm	_BMAC_MAX_FRAME,4,2             ## @BMAC_MAX_FRAME
	.comm	_BTXMAC_STATUS_MASK,4,2         ## @BTXMAC_STATUS_MASK
	.comm	_BMAC_CTRL_TYPE,4,2             ## @BMAC_CTRL_TYPE
	.comm	_BMAC_PREAMBLE_SIZE,4,2         ## @BMAC_PREAMBLE_SIZE
	.comm	_BTXMAC_CONFIG,4,2              ## @BTXMAC_CONFIG
	.comm	_BTXMAC_CONFIG_FCS_DISABLE,4,2  ## @BTXMAC_CONFIG_FCS_DISABLE
	.comm	_BTXMAC_CONFIG_ENABLE,4,2       ## @BTXMAC_CONFIG_ENABLE
	.no_dead_strip	_niu_init_tx_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_tx_bmac
_niu_init_tx_bmac:                      ; @niu_init_tx_bmac
	.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, x2
Lloh0:
	adrp	x8, _BMAC_MIN_FRAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BMAC_MIN_FRAME@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_nw64_mac
Lloh3:
	adrp	x8, _BMAC_MAX_FRAME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BMAC_MAX_FRAME@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_nw64_mac
Lloh6:
	adrp	x8, _BTXMAC_STATUS_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BTXMAC_STATUS_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	w1, #-1
	bl	_nw64_mac
Lloh9:
	adrp	x8, _BMAC_CTRL_TYPE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BMAC_CTRL_TYPE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	w1, #34824
	bl	_nw64_mac
Lloh12:
	adrp	x8, _BMAC_PREAMBLE_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BMAC_PREAMBLE_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	w1, #7
	bl	_nw64_mac
Lloh15:
	adrp	x19, _BTXMAC_CONFIG@GOTPAGE
Lloh16:
	ldr	x19, [x19, _BTXMAC_CONFIG@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_nr64_mac
Lloh17:
	adrp	x8, _BTXMAC_CONFIG_FCS_DISABLE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BTXMAC_CONFIG_FCS_DISABLE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _BTXMAC_CONFIG_ENABLE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _BTXMAC_CONFIG_ENABLE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w1, w0, w8
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_nw64_mac
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_BMAC_MIN_FRAME,4,2             ; @BMAC_MIN_FRAME
	.comm	_BMAC_MAX_FRAME,4,2             ; @BMAC_MAX_FRAME
	.comm	_BTXMAC_STATUS_MASK,4,2         ; @BTXMAC_STATUS_MASK
	.comm	_BMAC_CTRL_TYPE,4,2             ; @BMAC_CTRL_TYPE
	.comm	_BMAC_PREAMBLE_SIZE,4,2         ; @BMAC_PREAMBLE_SIZE
	.comm	_BTXMAC_CONFIG,4,2              ; @BTXMAC_CONFIG
	.comm	_BTXMAC_CONFIG_FCS_DISABLE,4,2  ; @BTXMAC_CONFIG_FCS_DISABLE
	.comm	_BTXMAC_CONFIG_ENABLE,4,2       ; @BTXMAC_CONFIG_ENABLE
	.no_dead_strip	_niu_init_tx_bmac
.subsections_via_symbols
