	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sprintb                        ## -- Begin function sprintb
	.p2align	4, 0x90
_sprintb:                               ## @sprintb
	.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
	movq	%rsi, %rbx
	movl	%edi, %r14d
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	cmpb	$8, (%rbx)
	jne	LBB0_3
## %bb.2:
	leaq	_sprintb.buf(%rip), %r15
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	$132, %esi
	movl	%r14d, %ecx
	callq	_snprintf
	movq	%r15, %rdi
	callq	_strlen
	movslq	%eax, %rcx
	addq	%r15, %rcx
	jmp	LBB0_4
LBB0_3:
	leaq	_sprintb.buf(%rip), %r15
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movl	$132, %esi
	movl	%r14d, %ecx
	callq	_snprintf
	movq	%r15, %rdi
	callq	_strlen
	movslq	%eax, %rcx
	addq	%r15, %rcx
	testq	%rbx, %rbx
	je	LBB0_17
LBB0_4:
	movw	$10272, (%rcx)                  ## imm = 0x2820
	addq	$2, %rcx
	movb	1(%rbx), %dl
	testb	%dl, %dl
	je	LBB0_15
## %bb.5:
	addq	$2, %rbx
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_TRUE@GOTPCREL(%rip), %r8
	leaq	L_.str.2(%rip), %rax
	leaq	_sprintb.buf+132(%rip), %rsi
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	testb	%dl, %dl
	je	LBB0_15
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
                                        ##     Child Loop BB0_8 Depth 2
	decb	%dl
	movzbl	%dl, %edx
	btl	%edx, %r14d
	jae	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	testl	%edi, %edi
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movb	$44, (%rcx)
	incq	%rcx
	cmpq	%rsi, %rcx
	jae	LBB0_18
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r8), %edi
	movb	(%rbx), %dl
	cmpb	$33, %dl
	jl	LBB0_14
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movb	%dl, (%rcx)
	incq	%rcx
	cmpq	%rsi, %rcx
	jae	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movzbl	1(%rbx), %edx
	incq	%rbx
	cmpb	$32, %dl
	jg	LBB0_12
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=1
	decq	%rbx
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	1(%rbx), %edx
	incq	%rbx
	cmpb	$32, %dl
	jg	LBB0_8
	jmp	LBB0_14
LBB0_15:
	movb	$41, (%rcx)
	incq	%rcx
	leaq	_sprintb.buf+132(%rip), %rax
	cmpq	%rax, %rcx
	jae	LBB0_16
LBB0_17:
	movb	$0, (%rcx)
	leaq	_sprintb.buf(%rip), %rax
	jmp	LBB0_18
LBB0_16:
	leaq	L_.str.2(%rip), %rax
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_sprintb.buf,132,4 ## @sprintb.buf
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0%o"

L_.str.1:                               ## @.str.1
	.asciz	"0x%x"

	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
L_.str.2:                               ## @.str.2
	.asciz	"sprintb buffer too small"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sprintb                        ; -- Begin function sprintb
	.p2align	2
_sprintb:                               ; @sprintb
	.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	x20, x1
	mov	x19, x0
	cbz	x1, LBB0_3
; %bb.1:
	ldrb	w8, [x20]
	cmp	w8, #8
	b.ne	LBB0_3
; %bb.2:
Lloh0:
	adrp	x21, _sprintb.buf@PAGE
Lloh1:
	add	x21, x21, _sprintb.buf@PAGEOFF
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	w1, #132
	mov	x3, x19
	bl	_snprintf
	mov	x0, x21
	bl	_strlen
	add	x8, x21, w0, sxtw
	b	LBB0_4
LBB0_3:
Lloh4:
	adrp	x21, _sprintb.buf@PAGE
Lloh5:
	add	x21, x21, _sprintb.buf@PAGEOFF
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	w1, #132
	mov	x3, x19
	bl	_snprintf
	mov	x0, x21
	bl	_strlen
	add	x8, x21, w0, sxtw
	cbz	x20, LBB0_16
LBB0_4:
	mov	w9, #10272
	strh	w9, [x8], #2
	ldrb	w14, [x20, #1]
Lloh8:
	adrp	x9, _sprintb.buf@PAGE+132
Lloh9:
	add	x9, x9, _sprintb.buf@PAGEOFF+132
	cbz	w14, LBB0_15
; %bb.5:
	add	x10, x20, #2
Lloh10:
	adrp	x11, _FALSE@GOTPAGE
Lloh11:
	ldr	x11, [x11, _FALSE@GOTPAGEOFF]
Lloh12:
	ldr	w13, [x11]
Lloh13:
	adrp	x11, _TRUE@GOTPAGE
Lloh14:
	ldr	x11, [x11, _TRUE@GOTPAGEOFF]
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	w12, #44
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x10, x10, #1
	cbz	w14, LBB0_15
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
                                        ;     Child Loop BB0_14 Depth 2
	sxtb	w14, w14
	sub	w14, w14, #1
	lsr	w14, w19, w14
	tbz	w14, #0, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cbz	w13, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	strb	w12, [x8], #1
	cmp	x8, x9
	b.hs	LBB0_18
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w13, [x11]
	ldrsb	w14, [x10]
	cmp	w14, #33
	b.lt	LBB0_6
LBB0_11:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	strb	w14, [x8], #1
	cmp	x8, x9
	b.hs	LBB0_18
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	ldrsb	w14, [x10, #1]!
	cmp	w14, #32
	b.gt	LBB0_11
	b	LBB0_6
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	sub	x10, x10, #1
LBB0_14:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w14, [x10, #1]!
	cmp	w14, #32
	b.gt	LBB0_14
	b	LBB0_6
LBB0_15:
	mov	w10, #41
	strb	w10, [x8], #1
	cmp	x8, x9
	b.hs	LBB0_17
LBB0_16:
	strb	wzr, [x8]
Lloh17:
	adrp	x0, _sprintb.buf@PAGE
Lloh18:
	add	x0, x0, _sprintb.buf@PAGEOFF
	b	LBB0_18
LBB0_17:
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_18:
	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
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_sprintb.buf,132,0 ; @sprintb.buf
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0%o"

l_.str.1:                               ; @.str.1
	.asciz	"0x%x"

	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
l_.str.2:                               ; @.str.2
	.asciz	"sprintb buffer too small"

.subsections_via_symbols
