	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uninorth_enable_config
_uninorth_enable_config:                ## @uninorth_enable_config
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %r14
	addq	$16, %rdi
	movq	_MA_OWNED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mtx_assert
	xorl	%eax, %eax
	cmpl	%r12d, (%r14)
	je	LBB0_9
## %bb.1:
	movl	4(%r14), %ecx
	cmpl	%r13d, 12(%r14)
	jne	LBB0_5
## %bb.2:
	cmpl	$3, %ecx
	jg	LBB0_5
## %bb.3:
	cmpl	$11, %r12d
	jl	LBB0_9
## %bb.4:
	shll	$8, %r15d
	btsl	%r12d, %r15d
	movl	%ebx, %eax
	andl	$252, %eax
	orl	%r15d, %eax
	jmp	LBB0_6
LBB0_5:
	shll	$16, %r13d
	shll	$11, %r12d
	orl	%r13d, %r12d
	shll	$8, %r15d
	orl	%r12d, %r15d
	movl	%ebx, %eax
	andl	$252, %eax
	addl	%r15d, %eax
	incl	%eax
LBB0_6:
	shll	$20, %ebx
	andl	$-268435456, %ebx               ## imm = 0xF0000000
	movl	%ebx, %edx
	xorl	%ebx, %ebx
	cmpl	$4, %ecx
	cmovel	%edx, %ebx
	orl	%eax, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r14), %edi
	movl	%ebx, %esi
	callq	_out32rb
	movl	8(%r14), %edi
	callq	_in32rb
	cmpl	%ebx, %eax
	jne	LBB0_7
## %bb.8:
	movl	$1, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MA_OWNED,4,2                   ## @MA_OWNED
	.no_dead_strip	_uninorth_enable_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uninorth_enable_config
_uninorth_enable_config:                ; @uninorth_enable_config
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	add	x0, x0, #16
Lloh0:
	adrp	x8, _MA_OWNED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MA_OWNED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_mtx_assert
	ldr	w8, [x19]
	cmp	w8, w22
	b.eq	LBB0_4
; %bb.1:
	ldr	w9, [x19, #12]
	ldr	w8, [x19, #4]
	cmp	w9, w23
	ccmp	w8, #3, #0, eq
	b.le	LBB0_3
; %bb.2:
	lsl	w9, w23, #16
	and	w10, w20, #0xfc
	orr	w9, w9, w22, lsl #11
	orr	w9, w9, w21, lsl #8
	orr	w9, w9, w10
	orr	w9, w9, #0x1
	b	LBB0_6
LBB0_3:
	cmp	w22, #11
	b.ge	LBB0_5
LBB0_4:
	mov	w0, #0
	b	LBB0_9
LBB0_5:
	mov	w9, #1
	lsl	w9, w9, w22
	orr	w9, w9, w21, lsl #8
	and	w10, w20, #0xfc
	orr	w9, w9, w10
LBB0_6:
	lsl	w10, w20, #20
	and	w10, w10, #0xf0000000
	cmp	w8, #4
	csel	w8, w10, wzr, eq
	orr	w20, w8, w9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #8]
	mov	x1, x20
	bl	_out32rb
	ldr	w0, [x19, #8]
	bl	_in32rb
	cmp	w0, w20
	b.ne	LBB0_7
; %bb.8:
	mov	w0, #1
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MA_OWNED,4,2                   ; @MA_OWNED
	.no_dead_strip	_uninorth_enable_config
.subsections_via_symbols
