	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_asn1_write_bool        ## -- Begin function mbedtls_asn1_write_bool
	.p2align	4, 0x90
_mbedtls_asn1_write_bool:               ## @mbedtls_asn1_write_bool
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	movq	%rax, %rcx
	subq	%rsi, %rcx
	testq	%rcx, %rcx
	jle	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%ecx, %ecx
	negl	%edx
	sbbl	%ecx, %ecx
	leaq	-1(%rax), %rdx
	movq	%rdx, (%rdi)
	movb	%cl, -1(%rax)
	movl	$1, %edx
	callq	_mbedtls_asn1_write_len
	movl	$1, %edi
	movl	%eax, %esi
	callq	_MBEDTLS_ASN1_CHK_ADD
	movq	_MBEDTLS_ASN1_BOOLEAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mbedtls_asn1_write_tag
	movl	$1, %edi
	movl	%eax, %esi
	callq	_MBEDTLS_ASN1_CHK_ADD
	movl	$1, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_MBEDTLS_ERR_ASN1_BUF_TOO_SMALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ERR_ASN1_BUF_TOO_SMALL,4,2 ## @MBEDTLS_ERR_ASN1_BUF_TOO_SMALL
	.comm	_MBEDTLS_ASN1_BOOLEAN,4,2       ## @MBEDTLS_ASN1_BOOLEAN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_asn1_write_bool        ; -- Begin function mbedtls_asn1_write_bool
	.p2align	2
_mbedtls_asn1_write_bool:               ; @mbedtls_asn1_write_bool
	.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
	ldr	x8, [x0]
	sub	x9, x8, x1
	cmp	x9, #0
	b.le	LBB0_2
; %bb.1:
	mov	x20, x1
	mov	x21, x0
	cmp	w2, #0
	csetm	w9, ne
	sub	x10, x8, #1
	str	x10, [x0]
	sturb	w9, [x8, #-1]
	mov	w19, #1
	mov	w2, #1
	bl	_mbedtls_asn1_write_len
	mov	x1, x0
	mov	w0, #1
	bl	_MBEDTLS_ASN1_CHK_ADD
Lloh0:
	adrp	x8, _MBEDTLS_ASN1_BOOLEAN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBEDTLS_ASN1_BOOLEAN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_mbedtls_asn1_write_tag
	mov	x1, x0
	mov	w0, #1
	bl	_MBEDTLS_ASN1_CHK_ADD
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _MBEDTLS_ERR_ASN1_BUF_TOO_SMALL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MBEDTLS_ERR_ASN1_BUF_TOO_SMALL@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
LBB0_3:
	mov	x0, 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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ERR_ASN1_BUF_TOO_SMALL,4,2 ; @MBEDTLS_ERR_ASN1_BUF_TOO_SMALL
	.comm	_MBEDTLS_ASN1_BOOLEAN,4,2       ; @MBEDTLS_ASN1_BOOLEAN
.subsections_via_symbols
