	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen_struct_ref
_gen_struct_ref:                        ## @gen_struct_ref
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r13
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rsi), %rdi
	callq	_TYPE_CODE
	movq	_TYPE_CODE_PTR@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_gen_usual_unary
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_gen_deref
	movq	8(%rbx), %rdi
	callq	_TYPE_CODE
	cmpq	(%r15), %rax
	je	LBB0_1
LBB0_3:
	movq	8(%rbx), %rdi
	callq	_check_typedef
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_TYPE_CODE
	movq	_TYPE_CODE_STRUCT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.4:
	movq	%r15, %rdi
	callq	_TYPE_CODE
	movq	_TYPE_CODE_UNION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_error
LBB0_6:
	movq	(%rbx), %rax
	movq	_axs_lvalue_memory@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_error
LBB0_8:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_find_field
	movl	%eax, %r12d
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_TYPE_FIELD_PACKED
	movq	%r15, %rdi
	movl	%r12d, %esi
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	callq	_TYPE_FIELD_TYPE
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_TYPE_FIELD_BITPOS
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_TYPE_FIELD_BITPOS
	movslq	%eax, %r13
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_TYPE_FIELD_BITSIZE
	addq	%rax, %r13
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movq	%r13, %r8
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gen_bitfield_ref               ## TAILCALL
LBB0_9:
	callq	_TYPE_FIELD_BITPOS
	movq	_TARGET_CHAR_BIT@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_gen_offset
	movq	(%r13), %rax
	movq	%rax, (%rbx)
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_TYPE_FIELD_TYPE
	movq	%rax, 8(%rbx)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TYPE_CODE_PTR,8,3              ## @TYPE_CODE_PTR
	.comm	_TYPE_CODE_STRUCT,8,3           ## @TYPE_CODE_STRUCT
	.comm	_TYPE_CODE_UNION,8,3            ## @TYPE_CODE_UNION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"The left operand of `%s' is not a %s."

	.comm	_axs_lvalue_memory,8,3          ## @axs_lvalue_memory
L_.str.1:                               ## @.str.1
	.asciz	"Structure does not live in memory."

	.comm	_TARGET_CHAR_BIT,4,2            ## @TARGET_CHAR_BIT
	.no_dead_strip	_gen_struct_ref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen_struct_ref
_gen_struct_ref:                        ; @gen_struct_ref
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x4
	mov	x23, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x0, [x1, #8]
	bl	_TYPE_CODE
Lloh0:
	adrp	x21, _TYPE_CODE_PTR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TYPE_CODE_PTR@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_gen_usual_unary
	mov	x0, x20
	mov	x1, x19
	bl	_gen_deref
	ldr	x0, [x19, #8]
	bl	_TYPE_CODE
	b	LBB0_1
LBB0_3:
	ldr	x0, [x19, #8]
	bl	_check_typedef
	mov	x21, x0
	bl	_TYPE_CODE
Lloh2:
	adrp	x8, _TYPE_CODE_STRUCT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TYPE_CODE_STRUCT@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.4:
	mov	x0, x21
	bl	_TYPE_CODE
Lloh5:
	adrp	x8, _TYPE_CODE_UNION@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TYPE_CODE_UNION@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.5:
	stp	x23, x24, [sp]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
LBB0_6:
	ldr	x8, [x19]
Lloh10:
	adrp	x23, _axs_lvalue_memory@GOTPAGE
Lloh11:
	ldr	x23, [x23, _axs_lvalue_memory@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.7:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_error
LBB0_8:
	mov	x0, x21
	mov	x1, x22
	bl	_find_field
	mov	x22, x0
	mov	x0, x21
	mov	x1, x22
	bl	_TYPE_FIELD_PACKED
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x21
	mov	x1, x22
	bl	_TYPE_FIELD_TYPE
	mov	x23, x0
	mov	x0, x21
	mov	x1, x22
	bl	_TYPE_FIELD_BITPOS
	mov	x24, x0
	mov	x0, x21
	mov	x1, x22
	bl	_TYPE_FIELD_BITPOS
	mov	x25, x0
	mov	x0, x21
	mov	x1, x22
	bl	_TYPE_FIELD_BITSIZE
	add	x4, x0, w25, sxtw
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	mov	x3, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_gen_bitfield_ref
LBB0_10:
	mov	x0, x21
	mov	x1, x22
	bl	_TYPE_FIELD_BITPOS
Lloh14:
	adrp	x8, _TARGET_CHAR_BIT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TARGET_CHAR_BIT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	sdiv	w1, w0, w8
	mov	x0, x20
	bl	_gen_offset
	ldr	x8, [x23]
	str	x8, [x19]
	mov	x0, x21
	mov	x1, x22
	bl	_TYPE_FIELD_TYPE
	str	x0, [x19, #8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_TYPE_CODE_PTR,8,3              ; @TYPE_CODE_PTR
	.comm	_TYPE_CODE_STRUCT,8,3           ; @TYPE_CODE_STRUCT
	.comm	_TYPE_CODE_UNION,8,3            ; @TYPE_CODE_UNION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"The left operand of `%s' is not a %s."

	.comm	_axs_lvalue_memory,8,3          ; @axs_lvalue_memory
l_.str.1:                               ; @.str.1
	.asciz	"Structure does not live in memory."

	.comm	_TARGET_CHAR_BIT,4,2            ; @TARGET_CHAR_BIT
	.no_dead_strip	_gen_struct_ref
.subsections_via_symbols
