	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bap_write
_bap_write:                             ## @bap_write
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	incl	%edx
	movq	_do8bitIO@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	andl	$-2, %edx
	movq	(%rdi), %rax
	movq	_DATA0@GOTPCREL(%rip), %r8
	movslq	%ecx, %rdi
	addq	(%rax), %rdi
	addq	(%r8), %rdi
	callq	_outsb
	jmp	LBB0_3
LBB0_1:
	movq	(%rdi), %rax
	movslq	%ecx, %rdi
	addq	(%rax), %rdi
	movq	_DATA0@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	sarl	%edx
	callq	_outsw
LBB0_3:
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_do8bitIO,4,2                   ## @do8bitIO
	.comm	_DATA0,8,3                      ## @DATA0
	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.no_dead_strip	_bap_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bap_write
_bap_write:                             ; @bap_write
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	add	w8, w2, #1
Lloh0:
	adrp	x9, _do8bitIO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _do8bitIO@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cbz	w9, LBB0_2
; %bb.1:
	and	w2, w8, #0xfffffffe
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _DATA0@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DATA0@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x8, x8, w3, sxtw
	add	x0, x8, x9
	bl	_outsb
	b	LBB0_3
LBB0_2:
	ldr	x9, [x0]
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _DATA0@GOTPAGE
Lloh7:
	ldr	x10, [x10, _DATA0@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	add	x9, x9, w3, sxtw
	add	x0, x9, x10
	asr	w2, w8, #1
	bl	_outsw
LBB0_3:
Lloh9:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_do8bitIO,4,2                   ; @do8bitIO
	.comm	_DATA0,8,3                      ; @DATA0
	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.no_dead_strip	_bap_write
.subsections_via_symbols
