	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rad_put_vendor_attr            ## -- Begin function rad_put_vendor_attr
	.p2align	4, 0x90
_rad_put_vendor_attr:                   ## @rad_put_vendor_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	cmpl	$0, 4(%rdi)
	je	LBB0_7
## %bb.1:
	movq	%r8, %rbx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	leaq	6(%r8), %r12
	movq	%r12, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %r14
	movl	%r15d, %edi
	callq	_htonl
	movl	%eax, 20(%r14)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r14)
	leaq	2(%rbx), %rax
	movq	%rax, 8(%r14)
	movl	16(%r14), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_memcpy
	movq	_RAD_VENDOR_SPECIFIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movq	%r14, %rdx
	movq	%r12, %rcx
	callq	_put_raw_attr
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_free
	testl	%ebx, %ebx
	jne	LBB0_10
## %bb.3:
	movq	_RAD_VENDOR_MICROSOFT@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_10
## %bb.4:
	movq	_RAD_MICROSOFT_MS_CHAP_RESPONSE@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_RAD_MICROSOFT_MS_CHAP2_RESPONSE@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	jne	LBB0_10
LBB0_6:
	movl	$1, (%r13)
	jmp	LBB0_10
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_generr
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_generr
LBB0_9:
	movl	$-1, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Please call rad_create_request() before putting attributes"

L_.str.1:                               ## @.str.1
	.asciz	"malloc failure (%zu bytes)"

	.comm	_RAD_VENDOR_SPECIFIC,4,2        ## @RAD_VENDOR_SPECIFIC
	.comm	_RAD_VENDOR_MICROSOFT,4,2       ## @RAD_VENDOR_MICROSOFT
	.comm	_RAD_MICROSOFT_MS_CHAP_RESPONSE,4,2 ## @RAD_MICROSOFT_MS_CHAP_RESPONSE
	.comm	_RAD_MICROSOFT_MS_CHAP2_RESPONSE,4,2 ## @RAD_MICROSOFT_MS_CHAP2_RESPONSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rad_put_vendor_attr            ; -- Begin function rad_put_vendor_attr
	.p2align	2
_rad_put_vendor_attr:                   ; @rad_put_vendor_attr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x23, x4
	mov	x25, x3
	mov	x20, x2
	mov	x21, x1
	add	x22, x4, #6
	mov	x0, x22
	bl	_malloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x24, x0
	mov	x0, x21
	bl	_htonl
	str	w0, [x24, #20]
	str	w20, [x24]
	add	x8, x23, #2
	str	x8, [x24, #8]
	ldr	w0, [x24, #16]
	mov	x1, x25
	mov	x2, x23
	bl	_memcpy
Lloh0:
	adrp	x8, _RAD_VENDOR_SPECIFIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RAD_VENDOR_SPECIFIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x24
	mov	x3, x22
	bl	_put_raw_attr
	mov	x22, x0
	mov	x0, x24
	bl	_free
Lloh3:
	adrp	x8, _RAD_VENDOR_MICROSOFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RAD_VENDOR_MICROSOFT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w22, #0
	ccmp	w8, w21, #0, eq
	b.ne	LBB0_8
; %bb.3:
Lloh6:
	adrp	x8, _RAD_MICROSOFT_MS_CHAP_RESPONSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RAD_MICROSOFT_MS_CHAP_RESPONSE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _RAD_MICROSOFT_MS_CHAP2_RESPONSE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RAD_MICROSOFT_MS_CHAP2_RESPONSE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w20
	mov	w22, #0
	ccmp	w9, w20, #4, ne
	b.ne	LBB0_8
; %bb.4:
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_8
LBB0_5:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:
	str	x22, [sp]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_generr
	mov	w22, #-1
LBB0_8:
	mov	x0, x22
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 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	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Please call rad_create_request() before putting attributes"

l_.str.1:                               ; @.str.1
	.asciz	"malloc failure (%zu bytes)"

	.comm	_RAD_VENDOR_SPECIFIC,4,2        ; @RAD_VENDOR_SPECIFIC
	.comm	_RAD_VENDOR_MICROSOFT,4,2       ; @RAD_VENDOR_MICROSOFT
	.comm	_RAD_MICROSOFT_MS_CHAP_RESPONSE,4,2 ; @RAD_MICROSOFT_MS_CHAP_RESPONSE
	.comm	_RAD_MICROSOFT_MS_CHAP2_RESPONSE,4,2 ; @RAD_MICROSOFT_MS_CHAP2_RESPONSE
.subsections_via_symbols
