	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_struct_field
_read_struct_field:                     ## @read_struct_field
	.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	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	_KIND_STRUCT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_node2s
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_error
LBB0_2:
	xorl	%eax, %eax
	callq	_get
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_TIDENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_tok2s
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_error
LBB0_4:
	movq	(%r14), %rax
	movl	8(%rax), %edi
	movl	8(%rbx), %esi
	callq	_dict_get
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_tok2s
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_error
LBB0_6:
	movl	8(%rbx), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ast_struct_ref                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_KIND_STRUCT,8,3                ## @KIND_STRUCT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"struct expected, but got %s"

	.comm	_TIDENT,8,3                     ## @TIDENT
L_.str.1:                               ## @.str.1
	.asciz	"field name expected, but got %s"

L_.str.2:                               ## @.str.2
	.asciz	"struct has no such field: %s"

	.no_dead_strip	_read_struct_field
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_struct_field
_read_struct_field:                     ; @read_struct_field
	.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	x19, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _KIND_STRUCT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _KIND_STRUCT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_node2s
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
LBB0_2:
	bl	_get
	mov	x20, x0
	ldr	x8, [x0]
Lloh5:
	adrp	x9, _TIDENT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TIDENT@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_tok2s
	mov	x1, x0
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_error
LBB0_4:
	ldr	x8, [x19]
	ldr	w0, [x8, #8]
	ldr	w1, [x20, #8]
	bl	_dict_get
	mov	x21, x0
	cbnz	x0, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_tok2s
	mov	x1, x0
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_error
LBB0_6:
	ldr	w2, [x20, #8]
	mov	x0, x21
	mov	x1, 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
	b	_ast_struct_ref
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_KIND_STRUCT,8,3                ; @KIND_STRUCT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"struct expected, but got %s"

	.comm	_TIDENT,8,3                     ; @TIDENT
l_.str.1:                               ; @.str.1
	.asciz	"field name expected, but got %s"

l_.str.2:                               ; @.str.2
	.asciz	"struct has no such field: %s"

	.no_dead_strip	_read_struct_field
.subsections_via_symbols
