	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvkm_snprintbf                 ## -- Begin function nvkm_snprintbf
	.p2align	4, 0x90
_nvkm_snprintbf:                        ## @nvkm_snprintbf
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	testl	%esi, %esi
	jle	LBB0_6
## %bb.1:
	movl	%ecx, %r14d
	movq	%rdx, %rbx
	movl	%esi, %r12d
	addq	$4, %rbx
	xorl	%eax, %eax
	leaq	L_.str(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$8, %rbx
	testl	%r12d, %r12d
	jle	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %r8d
	testl	%r8d, %r8d
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r14d, -4(%rbx)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	leaq	L_.str.1(%rip), %rcx
	leaq	L_.str.2(%rip), %rax
	cmoveq	%rax, %rcx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%r13, %rdx
	callq	_snprintf
	subl	%eax, %r12d
	cltq
	addq	%rax, %r15
	movl	$1, %eax
	jmp	LBB0_5
LBB0_6:
	movb	$0, (%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s%s"

L_.str.1:                               ## @.str.1
	.asciz	" "

L_.str.2:                               ## @.str.2
	.space	1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvkm_snprintbf                 ; -- Begin function nvkm_snprintbf
	.p2align	2
_nvkm_snprintbf:                        ; @nvkm_snprintbf
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	cmp	w1, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x20, x3
	mov	x21, x1
	mov	w8, #0
	add	x23, x2, #4
Lloh0:
	adrp	x24, l_.str.1@PAGE
Lloh1:
	add	x24, x24, l_.str.1@PAGEOFF
Lloh2:
	adrp	x25, l_.str.2@PAGE
Lloh3:
	add	x25, x25, l_.str.2@PAGEOFF
Lloh4:
	adrp	x22, l_.str@PAGE
Lloh5:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #8
	cmp	w21, #0
	b.le	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w4, [x23]
	cbz	w4, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	w9, [x23, #-4]
	tst	w9, w20
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, #0
	csel	x3, x25, x24, eq
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_snprintf
	sub	w21, w21, w0
	add	x19, x19, w0, sxtw
	mov	w8, #1
	b	LBB0_2
LBB0_6:
	strb	wzr, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%s"

l_.str.1:                               ; @.str.1
	.asciz	" "

l_.str.2:                               ; @.str.2
	.space	1

.subsections_via_symbols
