	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mrb_fix2binstr
_mrb_fix2binstr:                        ## @mrb_fix2binstr
	.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	%r12
	pushq	%rbx
	subq	$80, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movl	%esi, %edi
	callq	_mrb_fixnum
	movq	%rax, %r15
	cmpl	$2, %ebx
	je	LBB0_2
## %bb.1:
	movq	_E_ARGUMENT_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%ebx, %edi
	callq	_mrb_fixnum_value
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%eax, %ecx
	callq	_mrb_raisef
LBB0_2:
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.5:
	leaq	-47(%rbp), %rsi
	movb	$0, -47(%rbp)
	movq	_mrb_digitmap@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	%r15d, %eax
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cltd
	idivl	%ebx
	movslq	%edx, %rdx
	movzbl	(%rcx,%rdx), %edx
	movb	%dl, -1(%rsi)
	decq	%rsi
	testl	%eax, %eax
	jne	LBB0_6
## %bb.7:
	testq	%r15, %r15
	js	LBB0_8
LBB0_16:
	movq	%r14, %rdi
	callq	_mrb_str_new_cstr
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_18
## %bb.17:
	addq	$80, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_18
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	addq	$80, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mrb_str_new_lit                ## TAILCALL
LBB0_8:
	movq	%rsi, %rdi
	movl	%ebx, %esi
	callq	_remove_sign_bits
	movq	%rax, %rsi
	cmpl	$2, %ebx
	je	LBB0_13
## %bb.9:
	cmpl	$16, %ebx
	je	LBB0_10
## %bb.11:
	cmpl	$8, %ebx
	jne	LBB0_16
## %bb.12:
	movb	$55, %al
	jmp	LBB0_14
LBB0_10:
	movb	$102, %al
	jmp	LBB0_14
LBB0_13:
	movb	$49, %al
LBB0_14:
	movzbl	%al, %ecx
	movsbl	(%rsi), %edx
	cmpl	%ecx, %edx
	je	LBB0_16
## %bb.15:
	movb	%al, -1(%rsi)
	decq	%rsi
	jmp	LBB0_16
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_E_ARGUMENT_ERROR,4,2           ## @E_ARGUMENT_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid radix %S"

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

	.comm	_mrb_digitmap,8,3               ## @mrb_digitmap
	.no_dead_strip	_mrb_fix2binstr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mrb_fix2binstr
_mrb_fix2binstr:                        ; @mrb_fix2binstr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x2
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	mov	x0, x1
	bl	_mrb_fixnum
	mov	x21, x0
	cmp	w20, #2
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _E_ARGUMENT_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _E_ARGUMENT_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_mrb_fixnum_value
	mov	x3, x0
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x22
	bl	_mrb_raisef
LBB0_2:
	cbz	w21, LBB0_8
; %bb.3:
	add	x8, sp, #6
	add	x1, x8, #65
	strb	wzr, [sp, #71]
Lloh8:
	adrp	x8, _mrb_digitmap@GOTPAGE
Lloh9:
	ldr	x8, [x8, _mrb_digitmap@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	mov	x9, x21
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sdiv	w10, w9, w20
	msub	w9, w10, w20, w9
	ldrb	w9, [x8, w9, sxtw]
	strb	w9, [x1, #-1]!
	mov	x9, x10
	cbnz	w10, LBB0_4
; %bb.5:
	tbnz	x21, #63, LBB0_10
LBB0_6:
	mov	x0, x19
	bl	_mrb_str_new_cstr
	ldur	x8, [x29, #-40]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.7:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_8:
	ldur	x8, [x29, #-40]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.9:
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_mrb_str_new_lit
LBB0_10:
	mov	x0, x1
	mov	x1, x20
	bl	_remove_sign_bits
	mov	x1, x0
	cmp	w20, #2
	b.eq	LBB0_15
; %bb.11:
	cmp	w20, #16
	b.eq	LBB0_14
; %bb.12:
	cmp	w20, #8
	b.ne	LBB0_6
; %bb.13:
	mov	w8, #55
	b	LBB0_16
LBB0_14:
	mov	w8, #102
	b	LBB0_16
LBB0_15:
	mov	w8, #49
LBB0_16:
	ldrsb	w9, [x1]
	cmp	w9, w8
	b.eq	LBB0_6
; %bb.17:
	strb	w8, [x1, #-1]!
	b	LBB0_6
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_E_ARGUMENT_ERROR,4,2           ; @E_ARGUMENT_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid radix %S"

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

	.comm	_mrb_digitmap,8,3               ; @mrb_digitmap
	.no_dead_strip	_mrb_fix2binstr
.subsections_via_symbols
