	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grab_bits
_grab_bits:                             ## @grab_bits
	.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	%rdx, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_atoi
	movl	%eax, %r15d
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movl	$0, (%rbx)
LBB0_2:
	testl	%r15d, %r15d
	jle	LBB0_3
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	16(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_r_config_get
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_4
## %bb.6:
	movq	(%r14), %rax
	movl	4(%rax), %edi
	movq	_R_REG_NAME_PC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_r_reg_get_name
	movq	(%r14), %rcx
	movl	4(%rcx), %edi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_r_reg_get
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	8(%r14), %rcx
	movl	(%rax), %eax
	cmpl	%eax, (%rcx)
	cmovnel	%eax, %r15d
LBB0_8:
	testl	%r15d, %r15d
	jne	LBB0_10
## %bb.9:
	movq	(%r14), %rax
	movl	(%rax), %r15d
	jmp	LBB0_10
LBB0_4:
	movl	$8, %r15d
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.5:
	movl	$32, (%rbx)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"asm.arch"

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

	.comm	_R_REG_NAME_PC,4,2              ## @R_REG_NAME_PC
	.no_dead_strip	_grab_bits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grab_bits
_grab_bits:                             ; @grab_bits
	.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, x2
	mov	x20, x0
	mov	x0, x1
	bl	_atoi
	mov	x19, x0
	cbz	x21, LBB0_2
; %bb.1:
	str	wzr, [x21]
LBB0_2:
	cmp	w19, #0
	b.le	LBB0_4
LBB0_3:
	mov	x0, x19
	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_4:
	ldr	w0, [x20, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_r_config_get
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_9
; %bb.5:
	ldr	x8, [x20]
	ldr	w0, [x8, #4]
Lloh4:
	adrp	x8, _R_REG_NAME_PC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _R_REG_NAME_PC@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_r_reg_get_name
	mov	x1, x0
	ldr	x8, [x20]
	ldr	w0, [x8, #4]
	mov	w2, #0
	bl	_r_reg_get
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	ldr	w9, [x0]
	cmp	w8, w9
	csel	w19, w19, w9, eq
LBB0_7:
	cbnz	w19, LBB0_3
; %bb.8:
	ldr	x8, [x20]
	ldr	w19, [x8]
	b	LBB0_3
LBB0_9:
	cbz	x21, LBB0_11
; %bb.10:
	mov	w8, #32
	str	w8, [x21]
LBB0_11:
	mov	w19, #8
	b	LBB0_3
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"asm.arch"

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

	.comm	_R_REG_NAME_PC,4,2              ; @R_REG_NAME_PC
	.no_dead_strip	_grab_bits
.subsections_via_symbols
