	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_attribute_object
_add_attribute_object:                  ## @add_attribute_object
	.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	$1032, %rsp                     ## imm = 0x408
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %eax
	movl	%r8d, %r14d
	movq	%rdi, %r15
	movl	16(%rbp), %r8d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	movq	%rdi, -32(%rbp)
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rbx
	leaq	L_.str(%rip), %r10
	leaq	-1056(%rbp), %r9
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	movq	%rcx, %rdx
	movl	%eax, %ecx
	pushq	%rbx
	pushq	%r10
	pushq	$1024                           ## imm = 0x400
	callq	_build_data
	addq	$32, %rsp
	cmpl	$2, %eax
	jb	LBB0_3
## %bb.1:
	movq	24(%rbp), %rdx
	leaq	-1056(%rbp), %rcx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	$-1, %r8d
	callq	_X509_REQ_add1_attr_by_NID
	movl	%eax, %ecx
	movl	$1, %eax
	testl	%ecx, %ecx
	jne	LBB0_3
## %bb.2:
	movq	_bio_err@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_BIO_printf
	movl	(%rbx), %edi
	callq	_ERR_print_errors
	xorl	%eax, %eax
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	addq	$1032, %rsp                     ## imm = 0x408
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Attribute value"

L_.str.1:                               ## @.str.1
	.asciz	"Attribute default"

	.comm	_bio_err,4,2                    ## @bio_err
L_.str.2:                               ## @.str.2
	.asciz	"Error adding attribute\n"

	.no_dead_strip	_add_attribute_object
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_attribute_object
_add_attribute_object:                  ; @add_attribute_object
	.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
	sub	sp, sp, #1040
	mov	x19, x7
	mov	x8, x5
	mov	x20, x4
	mov	x21, x0
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	stur	x9, [x29, #-40]
Lloh3:
	adrp	x9, l_.str.1@PAGE
Lloh4:
	add	x9, x9, l_.str.1@PAGEOFF
	str	x9, [sp]
Lloh5:
	adrp	x7, l_.str@PAGE
Lloh6:
	add	x7, x7, l_.str@PAGEOFF
	add	x5, sp, #8
	mov	x0, x1
	mov	x1, x2
	mov	x2, x3
	mov	x3, x8
	mov	x4, x6
	mov	w6, #1024
	bl	_build_data
	cmp	w0, #2
	b.lo	LBB0_4
; %bb.1:
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	w4, #-1
	bl	_X509_REQ_add1_attr_by_NID
	cbz	w0, LBB0_3
; %bb.2:
	mov	w0, #1
	b	LBB0_4
LBB0_3:
Lloh7:
	adrp	x19, _bio_err@GOTPAGE
Lloh8:
	ldr	x19, [x19, _bio_err@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_BIO_printf
	ldr	w0, [x19]
	bl	_ERR_print_errors
	mov	w0, #0
LBB0_4:
	ldur	x8, [x29, #-40]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	add	sp, sp, #1040
	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
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Attribute value"

l_.str.1:                               ; @.str.1
	.asciz	"Attribute default"

	.comm	_bio_err,4,2                    ; @bio_err
l_.str.2:                               ; @.str.2
	.asciz	"Error adding attribute\n"

	.no_dead_strip	_add_attribute_object
.subsections_via_symbols
