	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hfa384x_to_bap
_hfa384x_to_bap:                        ## @hfa384x_to_bap
	.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	%ecx, %r15d
	movq	%rdx, %rbx
	cmpl	$1, %esi
	jne	LBB0_1
## %bb.2:
	movq	_HFA384X_DATA1_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_HFA384X_DATA0_OFF@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r14d
	cmpl	$2, %r15d
	jl	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	addq	$4, %rbx
	movl	%r14d, %esi
	callq	_HFA384X_OUTW_DATA
	leal	-2(%r15), %eax
	cmpl	$3, %r15d
	movl	%eax, %r15d
	ja	LBB0_5
## %bb.6:
	testb	$1, %al
	je	LBB0_8
LBB0_7:
	movsbl	(%rbx), %edi
	movl	%r14d, %esi
	callq	_HFA384X_OUTB
LBB0_8:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	%r15d, %eax
	testb	$1, %al
	jne	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_HFA384X_DATA1_OFF,4,2          ## @HFA384X_DATA1_OFF
	.comm	_HFA384X_DATA0_OFF,4,2          ## @HFA384X_DATA0_OFF
	.no_dead_strip	_hfa384x_to_bap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hfa384x_to_bap
_hfa384x_to_bap:                        ; @hfa384x_to_bap
	.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	x21, x3
	mov	x19, x2
Lloh0:
	adrp	x8, _HFA384X_DATA1_OFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HFA384X_DATA1_OFF@GOTPAGEOFF]
Lloh2:
	adrp	x9, _HFA384X_DATA0_OFF@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HFA384X_DATA0_OFF@GOTPAGEOFF]
	cmp	w1, #1
	csel	x8, x8, x9, eq
	ldr	w20, [x8]
	cmp	w3, #2
	b.lt	LBB0_5
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19], #4
	mov	x1, x20
	bl	_HFA384X_OUTW_DATA
	sub	w8, w21, #2
	cmp	w21, #3
	mov	x21, x8
	b.hi	LBB0_1
; %bb.2:
	tbz	w8, #0, LBB0_4
LBB0_3:
	ldrsb	w0, [x19]
	mov	x1, x20
	bl	_HFA384X_OUTB
LBB0_4:
	mov	w0, #0
	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
LBB0_5:
	mov	x8, x21
	tbnz	w8, #0, LBB0_3
	b	LBB0_4
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_HFA384X_DATA1_OFF,4,2          ; @HFA384X_DATA1_OFF
	.comm	_HFA384X_DATA0_OFF,4,2          ; @HFA384X_DATA0_OFF
	.no_dead_strip	_hfa384x_to_bap
.subsections_via_symbols
