	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mb86a20s_get_interleaving
_mb86a20s_get_interleaving:             ## @mb86a20s_get_interleaving
	.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, %ebx
	movq	%rdi, %r14
	leaq	_mb86a20s_get_interleaving.reg(%rip), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	cmpl	%ebx, %eax
	jbe	LBB0_1
## %bb.2:
	movl	%ebx, %eax
	movzbl	(%rax,%r15), %edx
	movq	%r14, %rdi
	movl	$109, %esi
	callq	_mb86a20s_writereg
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	movl	$110, %esi
	callq	_mb86a20s_readreg
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:
	shrl	$4, %eax
	andl	$7, %eax
	leaq	l___const.mb86a20s_get_interleaving.interleaving(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
	jmp	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.mb86a20s_get_interleaving.interleaving
l___const.mb86a20s_get_interleaving.interleaving:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	4                               ## 0x4
	.long	8                               ## 0x8

	.section	__DATA,__data
_mb86a20s_get_interleaving.reg:         ## @mb86a20s_get_interleaving.reg
	.ascii	"\210\214\220"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_mb86a20s_get_interleaving
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mb86a20s_get_interleaving
_mb86a20s_get_interleaving:             ; @mb86a20s_get_interleaving
	.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
Lloh0:
	adrp	x21, _mb86a20s_get_interleaving.reg@PAGE
Lloh1:
	add	x21, x21, _mb86a20s_get_interleaving.reg@PAGEOFF
	mov	x0, x21
	bl	_ARRAY_SIZE
	cmp	w0, w20
	b.ls	LBB0_4
; %bb.1:
	ldrb	w2, [x21, w20, uxtw]
	mov	x0, x19
	mov	w1, #109
	bl	_mb86a20s_writereg
	tbnz	w0, #31, LBB0_5
; %bb.2:
	mov	x0, x19
	mov	w1, #110
	bl	_mb86a20s_readreg
	tbnz	w0, #31, LBB0_5
; %bb.3:
	ubfx	w8, w0, #4, #3
Lloh2:
	adrp	x9, l___const.mb86a20s_get_interleaving.interleaving@PAGE
Lloh3:
	add	x9, x9, l___const.mb86a20s_get_interleaving.interleaving@PAGEOFF
	ldr	w0, [x9, w8, uxtw #2]
	b	LBB0_5
LBB0_4:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.mb86a20s_get_interleaving.interleaving
l___const.mb86a20s_get_interleaving.interleaving:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	4                               ; 0x4
	.long	8                               ; 0x8

	.section	__DATA,__data
_mb86a20s_get_interleaving.reg:         ; @mb86a20s_get_interleaving.reg
	.ascii	"\210\214\220"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_mb86a20s_get_interleaving
.subsections_via_symbols
