	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function niu_txc_enable_port
_niu_txc_enable_port:                   ## @niu_txc_enable_port
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_niu_lock_parent
	movq	_TXC_CONTROL@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_nr64
	movb	(%rbx), %cl
	movl	$1, %esi
	shll	%cl, %esi
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	movq	_TXC_CONTROL_ENABLE@GOTPCREL(%rip), %rcx
	orl	%eax, %esi
	orl	(%rcx), %esi
	jmp	LBB0_3
LBB0_2:
	notl	%esi
	andl	%esi, %eax
	movq	_TXC_CONTROL_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	cmovnel	%eax, %esi
LBB0_3:
	movl	(%r15), %edi
	callq	_nw64
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_niu_unlock_parent              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TXC_CONTROL,4,2                ## @TXC_CONTROL
	.comm	_TXC_CONTROL_ENABLE,4,2         ## @TXC_CONTROL_ENABLE
	.no_dead_strip	_niu_txc_enable_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function niu_txc_enable_port
_niu_txc_enable_port:                   ; @niu_txc_enable_port
	.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, x1
	mov	x19, x0
	bl	_niu_lock_parent
Lloh0:
	adrp	x21, _TXC_CONTROL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TXC_CONTROL@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_nr64
	ldr	w8, [x19]
	mov	w9, #1
	lsl	w8, w9, w8
	cbz	w20, LBB0_2
; %bb.1:
Lloh2:
	adrp	x9, _TXC_CONTROL_ENABLE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TXC_CONTROL_ENABLE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w1, w8, w9
	b	LBB0_3
LBB0_2:
	bic	w8, w0, w8
Lloh5:
	adrp	x9, _TXC_CONTROL_ENABLE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TXC_CONTROL_ENABLE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	bics	wzr, w8, w9
	csel	w1, wzr, w8, eq
LBB0_3:
	ldr	w0, [x21]
	bl	_nw64
	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	_niu_unlock_parent
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_TXC_CONTROL,4,2                ; @TXC_CONTROL
	.comm	_TXC_CONTROL_ENABLE,4,2         ; @TXC_CONTROL_ENABLE
	.no_dead_strip	_niu_txc_enable_port
.subsections_via_symbols
