	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_extra_attr
_add_extra_attr:                        ## @add_extra_attr
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%rsp, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_RADIUS_MAX_ATTR_LEN@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	incq	%rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movl	(%r12), %eax
	addl	$-100, %eax
	cmpl	$20, %eax
	ja	LBB0_12
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_11:
	movq	8(%r12), %rdi
	callq	_atoi
	movl	%eax, %edi
	callq	_htonl
	movl	%eax, -52(%rbp)
	leaq	-52(%rbp), %rsi
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_os_memcpy
	movl	$4, %ebx
	jmp	LBB0_14
LBB0_12:
	leaq	L_str.5(%rip), %rdi
	callq	_puts
	jmp	LBB0_16
LBB0_2:
	movb	$0, (%r15)
	movl	$1, %ebx
	jmp	LBB0_14
LBB0_13:
	movq	8(%r12), %rcx
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_os_snprintf
	movq	%r15, %rdi
	callq	_os_strlen
	movq	%rax, %rbx
LBB0_14:
	movl	16(%r12), %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_radius_msg_add_attr
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_17
## %bb.15:
	movl	16(%r12), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_16:
	movl	$-1, %eax
	jmp	LBB0_17
LBB0_3:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	8(%r12), %r13
	cmpb	$48, (%r13)
	jne	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	cmpb	$120, 1(%r13)
	sete	%al
	leaq	(%r13,%rax,2), %r13
LBB0_5:
	movq	%r13, %rdi
	callq	_os_strlen
	movq	%rax, %rbx
	testb	$1, %bl
	jne	LBB0_7
## %bb.6:
	shrq	%rbx
	cmpq	(%r14), %rbx
	jbe	LBB0_8
LBB0_7:
	leaq	L_str.4(%rip), %rdi
	callq	_puts
	movl	$-1, %eax
	movq	-64(%rbp), %r13                 ## 8-byte Reload
LBB0_17:
	movq	%r13, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_19
## %bb.18:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_hexstr2bin
	testl	%eax, %eax
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jns	LBB0_14
## %bb.9:
	leaq	L_str.4(%rip), %rdi
	callq	_puts
	jmp	LBB0_16
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_2
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_RADIUS_MAX_ATTR_LEN,8,3        ## @RADIUS_MAX_ATTR_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

L_.str.3:                               ## @.str.3
	.asciz	"Could not add attribute %d\n"

L_str.4:                                ## @str.4
	.asciz	"Invalid extra attribute hexstring"

L_str.5:                                ## @str.5
	.asciz	"Incorrect extra attribute syntax specification"

	.no_dead_strip	_add_extra_attr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_extra_attr
_add_extra_attr:                        ; @add_extra_attr
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x19, x1
	mov	x20, x0
	mov	x24, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x25, _RADIUS_MAX_ATTR_LEN@GOTPAGE
Lloh4:
	ldr	x25, [x25, _RADIUS_MAX_ATTR_LEN@GOTPAGEOFF]
	ldr	x8, [x25]
	add	x1, x8, #1
	mov	x9, x1
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #16
	and	x8, x8, #0xfffffffffffffff0
	sub	x21, x9, x8
	mov	sp, x21
	ldr	w8, [x19]
	sub	w8, w8, #100
	cmp	w8, #20
	b.hi	LBB0_3
; %bb.1:
Lloh7:
	adrp	x9, lJTI0_0@PAGE
Lloh8:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	x0, [x19, #8]
	bl	_atoi
	bl	_htonl
	stur	w0, [x29, #-76]
	mov	w22, #4
	sub	x1, x29, #76
	mov	x0, x21
	mov	w2, #4
	bl	_os_memcpy
	b	LBB0_6
LBB0_3:
Lloh9:
	adrp	x0, l_str.5@PAGE
Lloh10:
	add	x0, x0, l_str.5@PAGEOFF
	b	LBB0_15
LBB0_4:
	strb	wzr, [x21]
	mov	w22, #1
	b	LBB0_6
LBB0_5:
	ldr	x3, [x19, #8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_os_snprintf
	mov	x0, x21
	bl	_os_strlen
	mov	x22, x0
LBB0_6:
	ldr	w1, [x19, #16]
	mov	x0, x20
	mov	x2, x21
	mov	x3, x22
	bl	_radius_msg_add_attr
	cbz	w0, LBB0_8
; %bb.7:
	mov	w0, #0
	b	LBB0_17
LBB0_8:
	ldr	w8, [x19, #16]
	str	x8, [sp, #-16]!
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	add	sp, sp, #16
	b	LBB0_16
LBB0_9:
	ldr	x23, [x19, #8]
	ldrb	w8, [x23]
	cmp	w8, #48
	b.ne	LBB0_11
; %bb.10:
	ldrb	w8, [x23, #1]
	cmp	w8, #120
	cset	w8, eq
	add	x23, x23, w8, uxtw #1
LBB0_11:
	mov	x0, x23
	bl	_os_strlen
	tbnz	w0, #0, LBB0_14
; %bb.12:
	lsr	x22, x0, #1
	ldr	x8, [x25]
	cmp	x22, x8
	b.hi	LBB0_14
; %bb.13:
	mov	x0, x23
	mov	x1, x21
	mov	x2, x22
	bl	_hexstr2bin
	tbz	w0, #31, LBB0_6
LBB0_14:
Lloh15:
	adrp	x0, l_str.4@PAGE
Lloh16:
	add	x0, x0, l_str.4@PAGEOFF
LBB0_15:
	bl	_puts
LBB0_16:
	mov	w0, #-1
LBB0_17:
	mov	sp, x24
	ldur	x8, [x29, #-72]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.comm	_RADIUS_MAX_ATTR_LEN,8,3        ; @RADIUS_MAX_ATTR_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

l_.str.3:                               ; @.str.3
	.asciz	"Could not add attribute %d\n"

l_str.4:                                ; @str.4
	.asciz	"Invalid extra attribute hexstring"

l_str.5:                                ; @str.5
	.asciz	"Incorrect extra attribute syntax specification"

	.no_dead_strip	_add_extra_attr
.subsections_via_symbols
