	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wps_build_ap_cred
_wps_build_ap_cred:                     ## @wps_build_ap_cred
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_wpabuf_alloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movl	$200, %edi
	callq	_wpabuf_alloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %r14
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_wps_build_ap_settings
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%r14, %rdi
	callq	_wpabuf_clear_free
LBB0_4:
	movq	%rbx, %rdi
	callq	_wpabuf_free
LBB0_5:
	xorl	%ebx, %ebx
LBB0_7:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_ATTR_CRED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wpabuf_put_be16
	movq	%r14, %rdi
	callq	_wpabuf_len
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_wpabuf_put_be16
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_wpabuf_put_buf
	movq	%r14, %rdi
	callq	_wpabuf_clear_free
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_ATTR_CRED,4,2                  ## @ATTR_CRED
	.no_dead_strip	_wps_build_ap_cred
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wps_build_ap_cred
_wps_build_ap_cred:                     ; @wps_build_ap_cred
	.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
	mov	x21, x0
	mov	w0, #1000
	bl	_wpabuf_alloc
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.1:
	mov	w0, #200
	bl	_wpabuf_alloc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x20, x0
	mov	x0, x21
	mov	x1, x20
	bl	_wps_build_ap_settings
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_wpabuf_clear_free
LBB0_4:
	mov	x0, x19
	bl	_wpabuf_free
	mov	x19, #0
	b	LBB0_6
LBB0_5:
Lloh0:
	adrp	x8, _ATTR_CRED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATTR_CRED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wpabuf_put_be16
	mov	x0, x20
	bl	_wpabuf_len
	mov	x1, x0
	mov	x0, x19
	bl	_wpabuf_put_be16
	mov	x0, x19
	mov	x1, x20
	bl	_wpabuf_put_buf
	mov	x0, x20
	bl	_wpabuf_clear_free
LBB0_6:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_ATTR_CRED,4,2                  ; @ATTR_CRED
	.no_dead_strip	_wps_build_ap_cred
.subsections_via_symbols
