	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function type_write
_type_write:                            ## @type_write
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rdx), %r14
	movq	8(%rdx), %r13
	callq	_strlen
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_cpu_to_le32
	movb	%al, -44(%rbp)
	movq	(%rbx), %rdi
	callq	_cpu_to_le32
	movb	%al, -43(%rbp)
	movq	(%r13), %rax
	movq	_POLICYDB_VERSION_BOUNDARY@GOTPCREL(%rip), %rcx
	movq	8(%rbx), %rdi
	cmpq	(%rcx), %rax
	jge	LBB0_1
## %bb.6:
	callq	_cpu_to_le32
	movl	%eax, %r13d
	movl	$3, %ebx
	jmp	LBB0_7
LBB0_1:
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	movq	_TYPEDATUM_PROPERTY_PRIMARY@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
LBB0_3:
	movq	24(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_TYPEDATUM_PROPERTY_ATTRIBUTE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_5:
	orq	%rdi, %rax
	movq	%rax, %rdi
	callq	_cpu_to_le32
	movl	%eax, %r13d
	movq	16(%rbx), %rdi
	callq	_cpu_to_le32
	movb	%al, -41(%rbp)
	movl	$4, %ebx
LBB0_7:
	movb	%r13b, -42(%rbp)
	xorl	%edi, %edi
	callq	_BUG_ON
	leaq	-44(%rbp), %rdi
	movl	$8, %esi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	callq	_put_entry
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	movl	$1, %esi
	movq	%r12, %rdx
	movq	%r14, %rcx
	callq	_put_entry
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_POLICYDB_VERSION_BOUNDARY,8,3  ## @POLICYDB_VERSION_BOUNDARY
	.comm	_TYPEDATUM_PROPERTY_PRIMARY,8,3 ## @TYPEDATUM_PROPERTY_PRIMARY
	.comm	_TYPEDATUM_PROPERTY_ATTRIBUTE,8,3 ## @TYPEDATUM_PROPERTY_ATTRIBUTE
	.no_dead_strip	_type_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function type_write
_type_write:                            ; @type_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x1
	mov	x20, x0
	ldp	x19, x23, [x2]
	bl	_strlen
	mov	x21, x0
	bl	_cpu_to_le32
	strb	w0, [sp, #12]
	ldr	x0, [x22]
	bl	_cpu_to_le32
	strb	w0, [sp, #13]
	ldr	x8, [x23]
Lloh0:
	adrp	x9, _POLICYDB_VERSION_BOUNDARY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _POLICYDB_VERSION_BOUNDARY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x0, [x22, #8]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
	bl	_cpu_to_le32
	mov	x23, x0
	mov	w22, #3
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _TYPEDATUM_PROPERTY_PRIMARY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TYPEDATUM_PROPERTY_PRIMARY@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, #0
	csel	x8, xzr, x8, eq
	ldr	x9, [x22, #24]
Lloh6:
	adrp	x10, _TYPEDATUM_PROPERTY_ATTRIBUTE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _TYPEDATUM_PROPERTY_ATTRIBUTE@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, #0
	csel	x9, xzr, x10, eq
	orr	x0, x9, x8
	bl	_cpu_to_le32
	mov	x23, x0
	ldr	x0, [x22, #16]
	bl	_cpu_to_le32
	strb	w0, [sp, #15]
	mov	w22, #4
LBB0_3:
	strb	w23, [sp, #14]
	mov	w0, #0
	bl	_BUG_ON
	add	x0, sp, #12
	mov	w1, #8
	mov	x2, x22
	mov	x3, x19
	bl	_put_entry
	cbnz	w0, LBB0_5
; %bb.4:
	mov	x0, x20
	mov	w1, #1
	mov	x2, x21
	mov	x3, x19
	bl	_put_entry
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_POLICYDB_VERSION_BOUNDARY,8,3  ; @POLICYDB_VERSION_BOUNDARY
	.comm	_TYPEDATUM_PROPERTY_PRIMARY,8,3 ; @TYPEDATUM_PROPERTY_PRIMARY
	.comm	_TYPEDATUM_PROPERTY_ATTRIBUTE,8,3 ; @TYPEDATUM_PROPERTY_ATTRIBUTE
	.no_dead_strip	_type_write
.subsections_via_symbols
