	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PicoDrawSetOutFormat           ## -- Begin function PicoDrawSetOutFormat
	.p2align	4, 0x90
_PicoDrawSetOutFormat:                  ## @PicoDrawSetOutFormat
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	cmpl	$128, %edi
	je	LBB0_4
## %bb.1:
	cmpl	$129, %ebx
	jne	LBB0_2
## %bb.3:
	movq	_FinalizeLine8bit@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	testl	%esi, %esi
	je	LBB0_7
## %bb.5:
	movq	_PicoAHW@GOTPCREL(%rip), %rax
	movq	_PAHW_32X@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax), %ecx
	je	LBB0_7
## %bb.6:
	movq	_FinalizeLine32xRGB555@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_2:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_7:
	movq	_FinalizeLine555@GOTPCREL(%rip), %rax
LBB0_8:
	movq	(%rax), %rax
LBB0_9:
	movq	_FinalizeLine@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	%ebx, %edi
	callq	_PicoDrawSetOutFormat32x
	movl	%ebx, %edi
	callq	_PicoDrawSetOutputMode4
	movq	_rendstatus_old@GOTPCREL(%rip), %rax
	movl	$-1, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FinalizeLine8bit,8,3           ## @FinalizeLine8bit
	.comm	_FinalizeLine,8,3               ## @FinalizeLine
	.comm	_PicoAHW,4,2                    ## @PicoAHW
	.comm	_PAHW_32X,4,2                   ## @PAHW_32X
	.comm	_FinalizeLine32xRGB555,8,3      ## @FinalizeLine32xRGB555
	.comm	_FinalizeLine555,8,3            ## @FinalizeLine555
	.comm	_rendstatus_old,4,2             ## @rendstatus_old
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PicoDrawSetOutFormat           ; -- Begin function PicoDrawSetOutFormat
	.p2align	2
_PicoDrawSetOutFormat:                  ; @PicoDrawSetOutFormat
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	cmp	w0, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w19, #129
	b.ne	LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _FinalizeLine8bit@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FinalizeLine8bit@GOTPAGEOFF]
	b	LBB0_8
LBB0_3:
	cbz	w1, LBB0_7
; %bb.4:
Lloh2:
	adrp	x8, _PicoAHW@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PicoAHW@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _PAHW_32X@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PAHW_32X@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	and	w8, w9, w8
	cbz	w8, LBB0_7
; %bb.5:
Lloh8:
	adrp	x8, _FinalizeLine32xRGB555@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FinalizeLine32xRGB555@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	mov	x8, #0
	b	LBB0_9
LBB0_7:
Lloh10:
	adrp	x8, _FinalizeLine555@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FinalizeLine555@GOTPAGEOFF]
LBB0_8:
	ldr	x8, [x8]
LBB0_9:
Lloh12:
	adrp	x9, _FinalizeLine@GOTPAGE
Lloh13:
	ldr	x9, [x9, _FinalizeLine@GOTPAGEOFF]
Lloh14:
	str	x8, [x9]
	mov	x0, x19
	bl	_PicoDrawSetOutFormat32x
	mov	x0, x19
	bl	_PicoDrawSetOutputMode4
Lloh15:
	adrp	x8, _rendstatus_old@GOTPAGE
Lloh16:
	ldr	x8, [x8, _rendstatus_old@GOTPAGEOFF]
	mov	w9, #-1
Lloh17:
	str	w9, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_FinalizeLine8bit,8,3           ; @FinalizeLine8bit
	.comm	_FinalizeLine,8,3               ; @FinalizeLine
	.comm	_PicoAHW,4,2                    ; @PicoAHW
	.comm	_PAHW_32X,4,2                   ; @PAHW_32X
	.comm	_FinalizeLine32xRGB555,8,3      ; @FinalizeLine32xRGB555
	.comm	_FinalizeLine555,8,3            ; @FinalizeLine555
	.comm	_rendstatus_old,4,2             ; @rendstatus_old
.subsections_via_symbols
