	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpas_wps_set_uuid
_wpas_wps_set_uuid:                     ## @wpas_wps_set_uuid
	.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	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	(%rdi), %rax
	movl	4(%rax), %edi
	callq	_is_nil_uuid
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	24(%rbx), %rax
	movq	(%rax), %rax
	movq	%rax, %rdx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdx, %rcx
	movq	32(%rdx), %rdx
	testq	%rdx, %rdx
	jne	LBB0_2
## %bb.4:
	cmpq	%rbx, %rcx
	je	LBB0_7
## %bb.5:
	movq	16(%rax), %rax
	leaq	L_.str(%rip), %r15
	cmpq	%r14, %rax
	je	LBB0_11
## %bb.6:
	movl	(%r14), %edi
	movl	(%rax), %esi
	movq	_WPS_UUID_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_os_memcpy
	jmp	LBB0_11
LBB0_7:
	movq	(%rbx), %rax
	cmpl	$1, (%rax)
	jne	LBB0_9
## %bb.8:
	movl	(%r14), %edi
	callq	_uuid_random
	leaq	L_.str.1(%rip), %r15
	jmp	LBB0_11
LBB0_10:
	movl	(%r14), %edi
	movq	(%rbx), %rax
	movl	4(%rax), %esi
	movq	_WPS_UUID_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_os_memcpy
	leaq	L_.str.3(%rip), %r15
	jmp	LBB0_11
LBB0_9:
	movl	8(%rbx), %edi
	movl	(%r14), %esi
	callq	_uuid_gen_mac_addr
	leaq	L_.str.2(%rip), %r15
LBB0_11:
	movl	(%r14), %edi
	leaq	-96(%rbp), %r14
	movq	%r14, %rsi
	movl	$50, %edx
	callq	_uuid_bin2str
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rcx
	movq	%r14, %r8
	callq	_wpa_dbg
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_WPS_UUID_LEN,4,2               ## @WPS_UUID_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"from the first interface"

L_.str.1:                               ## @.str.1
	.asciz	"based on random data"

L_.str.2:                               ## @.str.2
	.asciz	"based on MAC address"

L_.str.3:                               ## @.str.3
	.asciz	"based on configuration"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.4:                               ## @.str.4
	.asciz	"WPS: UUID %s: %s"

	.no_dead_strip	_wpas_wps_set_uuid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpas_wps_set_uuid
_wpas_wps_set_uuid:                     ; @wpas_wps_set_uuid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x8, [x0]
	ldr	w0, [x8, #4]
	bl	_is_nil_uuid
	cbz	x0, LBB0_10
; %bb.1:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	mov	x10, x8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x10, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x9, x10
	ldr	x10, [x10, #32]
	cbnz	x10, LBB0_2
; %bb.4:
	cmp	x9, x19
	b.eq	LBB0_8
; %bb.5:
	ldr	x8, [x8, #16]
	cmp	x8, x20
	b.eq	LBB0_7
; %bb.6:
	ldr	w0, [x20]
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _WPS_UUID_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WPS_UUID_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_os_memcpy
LBB0_7:
Lloh6:
	adrp	x21, l_.str@PAGE
Lloh7:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_12
LBB0_8:
	ldr	x8, [x19]
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_11
; %bb.9:
	ldr	w0, [x20]
	bl	_uuid_random
Lloh8:
	adrp	x21, l_.str.1@PAGE
Lloh9:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_10:
	ldr	w0, [x20]
	ldr	x8, [x19]
	ldr	w1, [x8, #4]
Lloh10:
	adrp	x8, _WPS_UUID_LEN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _WPS_UUID_LEN@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	bl	_os_memcpy
Lloh13:
	adrp	x21, l_.str.3@PAGE
Lloh14:
	add	x21, x21, l_.str.3@PAGEOFF
	b	LBB0_12
LBB0_11:
	ldr	w0, [x19, #8]
	ldr	w1, [x20]
	bl	_uuid_gen_mac_addr
Lloh15:
	adrp	x21, l_.str.2@PAGE
Lloh16:
	add	x21, x21, l_.str.2@PAGEOFF
LBB0_12:
	ldr	w0, [x20]
	add	x1, sp, #6
	mov	w2, #50
	bl	_uuid_bin2str
Lloh17:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x2, l_.str.4@PAGE
Lloh21:
	add	x2, x2, l_.str.4@PAGEOFF
	add	x4, sp, #6
	mov	x0, x19
	mov	x3, x21
	bl	_wpa_dbg
	ldur	x8, [x29, #-40]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_WPS_UUID_LEN,4,2               ; @WPS_UUID_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"from the first interface"

l_.str.1:                               ; @.str.1
	.asciz	"based on random data"

l_.str.2:                               ; @.str.2
	.asciz	"based on MAC address"

l_.str.3:                               ; @.str.3
	.asciz	"based on configuration"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.4:                               ; @.str.4
	.asciz	"WPS: UUID %s: %s"

	.no_dead_strip	_wpas_wps_set_uuid
.subsections_via_symbols
