	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_bitsize
_read_bitsize:                          ## @read_bitsize
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_is_inttype
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_ty2s
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_error
LBB0_2:
	xorl	%eax, %eax
	callq	_peek
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_read_intexpr
	movl	%eax, %ebx
	movq	(%r12), %rcx
	movq	_KIND_BOOL@GOTPCREL(%rip), %rdx
	movl	$1, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_4
## %bb.3:
	movl	8(%r12), %eax
	shll	$3, %eax
LBB0_4:
	testl	%ebx, %ebx
	js	LBB0_6
## %bb.5:
	cmpl	%ebx, %eax
	jge	LBB0_7
LBB0_6:
	movq	%r12, %rdi
	callq	_ty2s
	movslq	%eax, %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_errort
LBB0_7:
	testq	%r14, %r14
	je	LBB0_10
## %bb.8:
	testl	%ebx, %ebx
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_errort
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"non-integer type cannot be a bitfield: %s"

	.comm	_KIND_BOOL,8,3                  ## @KIND_BOOL
L_.str.1:                               ## @.str.1
	.asciz	"invalid bitfield size for %s: %d"

L_.str.2:                               ## @.str.2
	.asciz	"zero-width bitfield needs to be unnamed: %s"

	.no_dead_strip	_read_bitsize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_bitsize
_read_bitsize:                          ; @read_bitsize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x22, x1
	mov	x19, x0
	mov	x0, x1
	bl	_is_inttype
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_ty2s
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
LBB0_2:
	bl	_peek
	mov	x21, x0
	bl	_read_intexpr
	mov	x20, x0
	ldr	x8, [x22]
Lloh2:
	adrp	x9, _KIND_BOOL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _KIND_BOOL@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	w8, #1
	tbz	w20, #31, LBB0_5
	b	LBB0_6
LBB0_4:
	ldr	w8, [x22, #8]
	lsl	w8, w8, #3
	tbnz	w20, #31, LBB0_6
LBB0_5:
	cmp	w8, w20
	b.ge	LBB0_7
LBB0_6:
	mov	x0, x22
	bl	_ty2s
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x2, w0
	str	x20, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_errort
LBB0_7:
	cbz	x19, LBB0_10
; %bb.8:
	cbnz	w20, LBB0_10
; %bb.9:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x2, x19
	bl	_errort
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"non-integer type cannot be a bitfield: %s"

	.comm	_KIND_BOOL,8,3                  ; @KIND_BOOL
l_.str.1:                               ; @.str.1
	.asciz	"invalid bitfield size for %s: %d"

l_.str.2:                               ; @.str.2
	.asciz	"zero-width bitfield needs to be unnamed: %s"

	.no_dead_strip	_read_bitsize
.subsections_via_symbols
