	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uninorth_read_config
_uninorth_read_config:                  ## @uninorth_read_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	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r12d
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %r14d
	movl	%esi, %r13d
	callq	_device_get_softc
	movq	%rax, %r15
	movl	%r12d, %ebx
	andl	$7, %ebx
	addq	8(%rax), %rbx
	movq	%rax, %rdi
	callq	_mtx_lock_spin
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%r14d, %edx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%r12d, %r8d
	callq	_uninorth_enable_config
	movl	$-1, %r12d
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	$4, %eax
	je	LBB0_6
## %bb.2:
	cmpl	$2, %eax
	je	LBB0_5
## %bb.3:
	cmpl	$1, %eax
	jne	LBB0_8
## %bb.4:
	movq	%rbx, %rdi
	callq	_in8rb
	jmp	LBB0_7
LBB0_6:
	movq	%rbx, %rdi
	callq	_in32rb
	jmp	LBB0_7
LBB0_5:
	movq	%rbx, %rdi
	callq	_in16rb
LBB0_7:
	movl	%eax, %r12d
LBB0_8:
	movq	%r15, %rdi
	callq	_mtx_unlock_spin
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_uninorth_read_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uninorth_read_config
_uninorth_read_config:                  ; @uninorth_read_config
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	bl	_device_get_softc
	mov	x19, x0
	ldr	x25, [x0, #8]
	bl	_mtx_lock_spin
	mov	x0, x19
	mov	x1, x24
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	bl	_uninorth_enable_config
	cbz	x0, LBB0_5
; %bb.1:
	and	w8, w21, #0x7
	add	x0, x25, x8
	cmp	w20, #4
	b.eq	LBB0_6
; %bb.2:
	cmp	w20, #2
	b.eq	LBB0_7
; %bb.3:
	cmp	w20, #1
	b.ne	LBB0_5
; %bb.4:
	bl	_in8rb
	b	LBB0_8
LBB0_5:
	mov	w20, #-1
	b	LBB0_9
LBB0_6:
	bl	_in32rb
	b	LBB0_8
LBB0_7:
	bl	_in16rb
LBB0_8:
	mov	x20, x0
LBB0_9:
	mov	x0, x19
	bl	_mtx_unlock_spin
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_uninorth_read_config
.subsections_via_symbols
