	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wps_registrar_get_msg          ## -- Begin function wps_registrar_get_msg
	.p2align	4, 0x90
_wps_registrar_get_msg:                 ## @wps_registrar_get_msg
	.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
	movl	4(%rdi), %edx
	leal	-130(%rdx), %eax
	cmpl	$6, %eax
	ja	LBB0_10
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_9:
	movq	%r15, %rdi
	callq	_wps_build_wsc_nack
	movq	%rax, %rbx
	movq	_WSC_NACK@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_15
LBB0_8:
	movq	%r15, %rdi
	callq	_wps_build_m8
	jmp	LBB0_4
LBB0_7:
	movq	%r15, %rdi
	callq	_wps_build_m6
	jmp	LBB0_4
LBB0_6:
	movq	%r15, %rdi
	callq	_wps_build_m4
	jmp	LBB0_4
LBB0_2:
	movq	%r15, %rdi
	callq	_wps_get_dev_password
	testl	%eax, %eax
	js	LBB0_3
## %bb.5:
	movq	%r15, %rdi
	callq	_wps_build_m2
	jmp	LBB0_4
LBB0_3:
	movq	%r15, %rdi
	callq	_wps_build_m2d
LBB0_4:
	movq	%rax, %rbx
	movq	_WSC_MSG@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_WSC_MSG@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_15
## %bb.13:
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.14:
	movl	8(%r15), %edi
	callq	_wpabuf_free
	movq	%rbx, %rdi
	callq	_wpabuf_dup
	movl	%eax, 8(%r15)
LBB0_15:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r15, %rdi
	callq	_wps_build_wsc_ack
	movq	%rax, %rbx
	movq	_WSC_ACK@GOTPCREL(%rip), %rax
	jmp	LBB0_12
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_6
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_WSC_MSG,4,2                    ## @WSC_MSG
	.comm	_WSC_ACK,4,2                    ## @WSC_ACK
	.comm	_WSC_NACK,4,2                   ## @WSC_NACK
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS: Unsupported state %d for building a message"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wps_registrar_get_msg          ; -- Begin function wps_registrar_get_msg
	.p2align	2
_wps_registrar_get_msg:                 ; @wps_registrar_get_msg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x0, #4]
	sub	w9, w8, #130
	cmp	w9, #6
	b.hi	LBB0_3
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, lJTI0_0@PAGE
Lloh1:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x8, x9]
	add	x10, x10, x11, lsl #2
Lloh2:
	adrp	x22, _WSC_MSG@GOTPAGE
Lloh3:
	ldr	x22, [x22, _WSC_MSG@GOTPAGEOFF]
	br	x10
LBB0_2:
	mov	x0, x19
	bl	_wps_build_wsc_nack
	mov	x21, x0
Lloh4:
	adrp	x8, _WSC_NACK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WSC_NACK@GOTPAGEOFF]
	b	LBB0_11
LBB0_3:
Lloh6:
	adrp	x9, _MSG_DEBUG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MSG_DEBUG@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	x21, #0
	b	LBB0_13
LBB0_4:
	mov	x0, x19
	bl	_wps_build_m8
	b	LBB0_10
LBB0_5:
	mov	x0, x19
	bl	_wps_build_m6
	b	LBB0_10
LBB0_6:
	mov	x0, x19
	bl	_wps_build_m4
	b	LBB0_10
LBB0_7:
	mov	x0, x19
	bl	_wps_get_dev_password
	tbnz	w0, #31, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_wps_build_m2
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	bl	_wps_build_m2d
LBB0_10:
	mov	x21, x0
Lloh11:
	adrp	x8, _WSC_MSG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WSC_MSG@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	str	w8, [x20]
	ldr	w9, [x22]
	cmp	w8, w9
	ccmp	x21, #0, #4, eq
	b.eq	LBB0_13
; %bb.12:
	ldr	w0, [x19, #8]
	bl	_wpabuf_free
	mov	x0, x21
	bl	_wpabuf_dup
	str	w0, [x19, #8]
LBB0_13:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_14:
	mov	x0, x19
	bl	_wps_build_wsc_ack
	mov	x21, x0
Lloh13:
	adrp	x8, _WSC_ACK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WSC_ACK@GOTPAGEOFF]
	b	LBB0_11
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
                                        ; -- End function
	.comm	_WSC_MSG,4,2                    ; @WSC_MSG
	.comm	_WSC_ACK,4,2                    ; @WSC_ACK
	.comm	_WSC_NACK,4,2                   ; @WSC_NACK
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS: Unsupported state %d for building a message"

.subsections_via_symbols
