	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dt_node_offsetof               ## -- Begin function dt_node_offsetof
	.p2align	4, 0x90
_dt_node_offsetof:                      ## @dt_node_offsetof
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_strlen
	leaq	1(%rax), %rdi
	callq	_alloca
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_strcpy
	movq	%rbx, %rdi
	callq	_free
	leaq	-32(%rbp), %rsi
	movq	%r15, %rdi
	callq	_dt_decl_type
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_dt_decl_free
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	movq	_yypcb@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movq	_EDT_COMPILER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_longjmp
LBB0_2:
	movl	-32(%rbp), %edi
	movl	-28(%rbp), %esi
	callq	_ctf_type_resolve
	movl	%eax, %ebx
	movl	-32(%rbp), %edi
	movl	%eax, %esi
	callq	_ctf_type_kind
	movq	_CTF_K_STRUCT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.3:
	movq	_CTF_K_UNION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	movq	_D_OFFSETOF_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_xyerror
LBB0_5:
	movl	-32(%rbp), %edi
	leaq	-48(%rbp), %rcx
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_ctf_member_info
	movq	_CTF_ERR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movq	_D_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	-32(%rbp), %edi
	callq	_ctf_errno
	movl	%eax, %edi
	callq	_ctf_errmsg
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movq	%r14, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_xyerror
LBB0_7:
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_bzero
	movl	-32(%rbp), %esi
	movl	-44(%rbp), %edx
	movq	_B_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_dt_node_type_assign
	movq	_DT_NF_BITFIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -40(%rbp)
	je	LBB0_9
## %bb.8:
	movq	_D_OFFSETOF_BITFIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_xyerror
LBB0_9:
	movl	-48(%rbp), %eax
	movq	_NBBY@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	%eax, %edi
	callq	_dt_node_int
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_yypcb,8,3                      ## @yypcb
	.comm	_EDT_COMPILER,4,2               ## @EDT_COMPILER
	.comm	_CTF_K_STRUCT,8,3               ## @CTF_K_STRUCT
	.comm	_CTF_K_UNION,8,3                ## @CTF_K_UNION
	.comm	_D_OFFSETOF_TYPE,4,2            ## @D_OFFSETOF_TYPE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"offsetof operand must be a struct or union type\n"

	.comm	_CTF_ERR,8,3                    ## @CTF_ERR
	.comm	_D_UNKNOWN,4,2                  ## @D_UNKNOWN
L_.str.1:                               ## @.str.1
	.asciz	"failed to determine offset of %s: %s\n"

	.comm	_B_FALSE,4,2                    ## @B_FALSE
	.comm	_DT_NF_BITFIELD,4,2             ## @DT_NF_BITFIELD
	.comm	_D_OFFSETOF_BITFIELD,4,2        ## @D_OFFSETOF_BITFIELD
L_.str.2:                               ## @.str.2
	.asciz	"cannot take offset of a bit-field: %s\n"

	.comm	_NBBY,4,2                       ## @NBBY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dt_node_offsetof               ; -- Begin function dt_node_offsetof
	.p2align	2
_dt_node_offsetof:                      ; @dt_node_offsetof
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x1
	mov	x21, x0
	mov	x0, x1
	bl	_strlen
	add	x0, x0, #1
	bl	_alloca
	mov	x19, x0
	mov	x1, x20
	bl	_strcpy
	mov	x0, x20
	bl	_free
	add	x1, sp, #40
	mov	x0, x21
	bl	_dt_decl_type
	mov	x20, x0
	mov	x0, x21
	bl	_dt_decl_free
	cbz	w20, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _yypcb@GOTPAGE
Lloh1:
	ldr	x8, [x8, _yypcb@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _EDT_COMPILER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EDT_COMPILER@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_longjmp
LBB0_2:
	ldp	w0, w1, [sp, #40]
	bl	_ctf_type_resolve
	mov	x20, x0
	ldr	w0, [sp, #40]
	mov	x1, x20
	bl	_ctf_type_kind
Lloh6:
	adrp	x8, _CTF_K_STRUCT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CTF_K_STRUCT@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _CTF_K_UNION@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CTF_K_UNION@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.eq	LBB0_4
; %bb.3:
Lloh12:
	adrp	x8, _D_OFFSETOF_TYPE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _D_OFFSETOF_TYPE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_xyerror
LBB0_4:
	ldr	w0, [sp, #40]
	add	x3, sp, #24
	mov	x1, x20
	mov	x2, x19
	bl	_ctf_member_info
Lloh17:
	adrp	x8, _CTF_ERR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CTF_ERR@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.5:
Lloh20:
	adrp	x8, _D_UNKNOWN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _D_UNKNOWN@GOTPAGEOFF]
Lloh22:
	ldr	w20, [x8]
	ldr	w0, [sp, #40]
	bl	_ctf_errno
	bl	_ctf_errmsg
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x19, x0, [sp]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_xyerror
LBB0_6:
	add	x0, sp, #32
	mov	w1, #4
	bl	_bzero
	ldr	w1, [sp, #40]
	ldr	w2, [sp, #28]
Lloh25:
	adrp	x8, _B_FALSE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _B_FALSE@GOTPAGEOFF]
Lloh27:
	ldr	w3, [x8]
	add	x0, sp, #32
	bl	_dt_node_type_assign
	ldr	w8, [sp, #32]
Lloh28:
	adrp	x9, _DT_NF_BITFIELD@GOTPAGE
Lloh29:
	ldr	x9, [x9, _DT_NF_BITFIELD@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
Lloh31:
	adrp	x8, _D_OFFSETOF_BITFIELD@GOTPAGE
Lloh32:
	ldr	x8, [x8, _D_OFFSETOF_BITFIELD@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh34:
	adrp	x1, l_.str.2@PAGE
Lloh35:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_xyerror
LBB0_8:
	ldr	w8, [sp, #24]
Lloh36:
	adrp	x9, _NBBY@GOTPAGE
Lloh37:
	ldr	x9, [x9, _NBBY@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	sdiv	w0, w8, w9
	bl	_dt_node_int
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_yypcb,8,3                      ; @yypcb
	.comm	_EDT_COMPILER,4,2               ; @EDT_COMPILER
	.comm	_CTF_K_STRUCT,8,3               ; @CTF_K_STRUCT
	.comm	_CTF_K_UNION,8,3                ; @CTF_K_UNION
	.comm	_D_OFFSETOF_TYPE,4,2            ; @D_OFFSETOF_TYPE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"offsetof operand must be a struct or union type\n"

	.comm	_CTF_ERR,8,3                    ; @CTF_ERR
	.comm	_D_UNKNOWN,4,2                  ; @D_UNKNOWN
l_.str.1:                               ; @.str.1
	.asciz	"failed to determine offset of %s: %s\n"

	.comm	_B_FALSE,4,2                    ; @B_FALSE
	.comm	_DT_NF_BITFIELD,4,2             ; @DT_NF_BITFIELD
	.comm	_D_OFFSETOF_BITFIELD,4,2        ; @D_OFFSETOF_BITFIELD
l_.str.2:                               ; @.str.2
	.asciz	"cannot take offset of a bit-field: %s\n"

	.comm	_NBBY,4,2                       ; @NBBY
.subsections_via_symbols
