	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aux_bap_read
_aux_bap_read:                          ## @aux_bap_read
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movl	%edx, %r14d
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	callq	_spin_lock_irqsave
	movq	_SWS0@GOTPCREL(%rip), %rax
	movslq	%ebx, %rbx
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r12, %rdi
	callq	_IN4500
	movl	%eax, %r15d
	movq	_SWS2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	addq	%rbx, %rsi
	movq	%r12, %rdi
	callq	_IN4500
	leaq	-44(%rbp), %rcx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_aux_setup
	testl	%r14d, %r14d
	jle	LBB0_7
## %bb.1:
	movl	%eax, %ebx
	incl	%r14d
	sarl	%r14d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %eax
	sarl	%eax
	movl	%r14d, %r13d
	subl	%r15d, %r13d
	cmpl	%r13d, %eax
	cmovll	%eax, %r13d
	movq	8(%r12), %rax
	movq	(%rax), %rdi
	addq	-56(%rbp), %rdi                 ## 8-byte Folded Reload
	movslq	%r15d, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rsi
	movq	_DATA0@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	movq	_do8bitIO@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	(%r13,%r13), %edx
	callq	_insb
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %edx
	callq	_insw
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	%r13d, %r15d
	cmpl	%r14d, %r15d
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	$4, %edx
	leaq	-44(%rbp), %rcx
	callq	_aux_setup
	movl	%eax, %ebx
	jmp	LBB0_2
LBB0_7:
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SWS0,8,3                       ## @SWS0
	.comm	_SWS2,8,3                       ## @SWS2
	.comm	_do8bitIO,4,2                   ## @do8bitIO
	.comm	_DATA0,8,3                      ## @DATA0
	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.no_dead_strip	_aux_bap_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aux_bap_read
_aux_bap_read:                          ; @aux_bap_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _SWS0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SWS0@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sxtw	x23, w21
	add	x1, x8, x23
	mov	x0, x19
	bl	_IN4500
	mov	x21, x0
Lloh3:
	adrp	x8, _SWS2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SWS2@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x1, x8, x23
	mov	x0, x19
	bl	_IN4500
	mov	x2, x0
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x21
	bl	_aux_setup
	cmp	w22, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x21, x0
	mov	w24, #0
	add	w8, w22, #1
	asr	w25, w8, #1
Lloh6:
	adrp	x26, _do8bitIO@GOTPAGE
Lloh7:
	ldr	x26, [x26, _do8bitIO@GOTPAGEOFF]
Lloh8:
	adrp	x27, _DATA0@GOTPAGE
Lloh9:
	ldr	x27, [x27, _DATA0@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #12]
	asr	w8, w8, #1
	sub	w9, w25, w24
	cmp	w8, w9
	csel	w22, w8, w9, lt
	ldr	w8, [x26]
	ldr	x9, [x19, #8]
	ldr	x9, [x9]
	ldr	x10, [x27]
	add	x9, x9, x23
	add	x0, x9, x10
	add	x1, x20, w24, sxtw #2
	cbz	w8, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	lsl	w2, w22, #1
	bl	_insb
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x2, x22
	bl	_insw
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w24, w22, w24
	cmp	w24, w25
	b.ge	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x21
	mov	w2, #4
	bl	_aux_setup
	mov	x21, x0
	b	LBB0_2
LBB0_7:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
Lloh10:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SWS0,8,3                       ; @SWS0
	.comm	_SWS2,8,3                       ; @SWS2
	.comm	_do8bitIO,4,2                   ; @do8bitIO
	.comm	_DATA0,8,3                      ; @DATA0
	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.no_dead_strip	_aux_bap_read
.subsections_via_symbols
