	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p2p_buf_add_device_info        ## -- Begin function p2p_buf_add_device_info
	.p2align	4, 0x90
_p2p_buf_add_device_info:               ## @p2p_buf_add_device_info
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	_P2P_ATTR_DEVICE_INFO@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_wpabuf_put_u8
	movq	%r13, %rdi
	movl	$2, %esi
	callq	_wpabuf_put
	movq	%rax, %r14
	movq	(%r15), %rax
	movq	40(%rax), %rsi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r13, %rdi
	callq	_wpabuf_put_data
	testq	%r12, %r12
	je	LBB0_10
## %bb.1:
	movq	(%r12), %rax
	movq	_WPS_NOT_READY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
LBB0_10:
	movq	(%r15), %rax
	movslq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_WPS_CONFIG_PUSHBUTTON@GOTPCREL(%rip), %rcx
	movq	_WPS_CONFIG_DISPLAY@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	orq	(%rcx), %rsi
	movq	_WPS_CONFIG_KEYPAD@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rsi
	movq	_WPS_CONFIG_P2PS@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rsi
	andq	%rax, %rsi
	jmp	LBB0_14
LBB0_2:
	movq	_WPS_PBC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_WPS_CONFIG_PUSHBUTTON@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	jmp	LBB0_14
LBB0_12:
	movq	_WPS_CONFIG_PUSHBUTTON@GOTPCREL(%rip), %rax
	movq	_WPS_CONFIG_DISPLAY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	orq	(%rax), %rsi
	movq	_WPS_CONFIG_KEYPAD@GOTPCREL(%rip), %rax
	orq	(%rax), %rsi
	movq	_WPS_CONFIG_P2PS@GOTPCREL(%rip), %rax
LBB0_13:
	orq	(%rax), %rsi
	jmp	LBB0_14
LBB0_4:
	movq	_WPS_P2PS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	_WPS_CONFIG_P2PS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	jmp	LBB0_14
LBB0_6:
	movq	_WPS_PIN_DISPLAY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.7:
	movq	_WPS_PIN_KEYPAD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.8:
	xorl	%esi, %esi
LBB0_14:
	movq	%r13, %rdi
	callq	_wpabuf_put_be16
	movq	(%r15), %rax
	movq	32(%rax), %rsi
	movl	$8, %edx
	movq	%r13, %rdi
	callq	_wpabuf_put_data
	movq	(%r15), %rax
	movq	8(%rax), %rsi
	movq	%r13, %rdi
	callq	_wpabuf_put_u8
	movq	(%r15), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_17
## %bb.15:
	xorl	%ebx, %ebx
	movq	_WPS_DEV_TYPE_LEN@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%rax), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	(%r12), %rdx
	movq	%r13, %rdi
	callq	_wpabuf_put_data
	incq	%rbx
	movq	(%r15), %rax
	cmpq	8(%rax), %rbx
	jb	LBB0_16
LBB0_17:
	movq	16(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.19:
	callq	_os_strlen
	movq	%rax, %r12
	jmp	LBB0_20
LBB0_18:
	xorl	%r12d, %r12d
LBB0_20:
	movq	_ATTR_DEV_NAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_wpabuf_put_be16
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_wpabuf_put_be16
	movq	(%r15), %rax
	movq	16(%rax), %rsi
	movq	%r13, %rdi
	movq	%r12, %rdx
	callq	_wpabuf_put_data
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_wpabuf_put
	subq	%r14, %rax
	shrq	$2, %rax
	leal	-2(%rax), %esi
	movq	%r14, %rdi
	callq	_WPA_PUT_LE16
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpa_printf                     ## TAILCALL
LBB0_9:
	movq	_WPS_CONFIG_DISPLAY@GOTPCREL(%rip), %rax
	movq	_WPS_CONFIG_KEYPAD@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_P2P_ATTR_DEVICE_INFO,8,3       ## @P2P_ATTR_DEVICE_INFO
	.comm	_ETH_ALEN,8,3                   ## @ETH_ALEN
	.comm	_WPS_NOT_READY,8,3              ## @WPS_NOT_READY
	.comm	_WPS_PBC,8,3                    ## @WPS_PBC
	.comm	_WPS_CONFIG_PUSHBUTTON,8,3      ## @WPS_CONFIG_PUSHBUTTON
	.comm	_WPS_P2PS,8,3                   ## @WPS_P2PS
	.comm	_WPS_CONFIG_P2PS,8,3            ## @WPS_CONFIG_P2PS
	.comm	_WPS_PIN_DISPLAY,8,3            ## @WPS_PIN_DISPLAY
	.comm	_WPS_PIN_KEYPAD,8,3             ## @WPS_PIN_KEYPAD
	.comm	_WPS_CONFIG_DISPLAY,8,3         ## @WPS_CONFIG_DISPLAY
	.comm	_WPS_CONFIG_KEYPAD,8,3          ## @WPS_CONFIG_KEYPAD
	.comm	_WPS_DEV_TYPE_LEN,8,3           ## @WPS_DEV_TYPE_LEN
	.comm	_ATTR_DEV_NAME,8,3              ## @ATTR_DEV_NAME
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"P2P: * Device Info"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_p2p_buf_add_device_info        ; -- Begin function p2p_buf_add_device_info
	.p2align	2
_p2p_buf_add_device_info:               ; @p2p_buf_add_device_info
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _P2P_ATTR_DEVICE_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _P2P_ATTR_DEVICE_INFO@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
	bl	_wpabuf_put_u8
	mov	x0, x19
	mov	w1, #2
	bl	_wpabuf_put
	mov	x20, x0
	ldr	x8, [x21]
	ldr	x1, [x8, #40]
Lloh3:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh5:
	ldr	x2, [x8]
	mov	x0, x19
	bl	_wpabuf_put_data
	cbz	x22, LBB0_2
; %bb.1:
	ldr	x8, [x22]
Lloh6:
	adrp	x9, _WPS_NOT_READY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WPS_NOT_READY@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
LBB0_2:
	ldr	x8, [x21]
	ldrsw	x8, [x8]
	cbz	w8, LBB0_6
; %bb.3:
Lloh9:
	adrp	x9, _WPS_CONFIG_PUSHBUTTON@GOTPAGE
Lloh10:
	ldr	x9, [x9, _WPS_CONFIG_PUSHBUTTON@GOTPAGEOFF]
Lloh11:
	adrp	x10, _WPS_CONFIG_DISPLAY@GOTPAGE
Lloh12:
	ldr	x10, [x10, _WPS_CONFIG_DISPLAY@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
Lloh14:
	ldr	x10, [x10]
	orr	x9, x10, x9
Lloh15:
	adrp	x10, _WPS_CONFIG_KEYPAD@GOTPAGE
Lloh16:
	ldr	x10, [x10, _WPS_CONFIG_KEYPAD@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	orr	x9, x9, x10
Lloh18:
	adrp	x10, _WPS_CONFIG_P2PS@GOTPAGE
Lloh19:
	ldr	x10, [x10, _WPS_CONFIG_P2PS@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	orr	x9, x9, x10
	and	x1, x9, x8
	b	LBB0_12
LBB0_4:
Lloh21:
	adrp	x9, _WPS_PBC@GOTPAGE
Lloh22:
	ldr	x9, [x9, _WPS_PBC@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
Lloh24:
	adrp	x8, _WPS_CONFIG_PUSHBUTTON@GOTPAGE
Lloh25:
	ldr	x8, [x8, _WPS_CONFIG_PUSHBUTTON@GOTPAGEOFF]
Lloh26:
	ldr	x1, [x8]
	b	LBB0_12
LBB0_6:
Lloh27:
	adrp	x8, _WPS_CONFIG_PUSHBUTTON@GOTPAGE
Lloh28:
	ldr	x8, [x8, _WPS_CONFIG_PUSHBUTTON@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
Lloh30:
	adrp	x9, _WPS_CONFIG_DISPLAY@GOTPAGE
Lloh31:
	ldr	x9, [x9, _WPS_CONFIG_DISPLAY@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
Lloh33:
	adrp	x10, _WPS_CONFIG_KEYPAD@GOTPAGE
Lloh34:
	ldr	x10, [x10, _WPS_CONFIG_KEYPAD@GOTPAGEOFF]
Lloh35:
	ldr	x10, [x10]
Lloh36:
	adrp	x11, _WPS_CONFIG_P2PS@GOTPAGE
Lloh37:
	ldr	x11, [x11, _WPS_CONFIG_P2PS@GOTPAGEOFF]
Lloh38:
	ldr	x11, [x11]
	orr	x8, x9, x8
	orr	x8, x8, x10
	orr	x1, x8, x11
	b	LBB0_12
LBB0_7:
Lloh39:
	adrp	x9, _WPS_P2PS@GOTPAGE
Lloh40:
	ldr	x9, [x9, _WPS_P2PS@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
Lloh42:
	adrp	x8, _WPS_CONFIG_P2PS@GOTPAGE
Lloh43:
	ldr	x8, [x8, _WPS_CONFIG_P2PS@GOTPAGEOFF]
Lloh44:
	ldr	x1, [x8]
	b	LBB0_12
LBB0_9:
Lloh45:
	adrp	x9, _WPS_PIN_DISPLAY@GOTPAGE
Lloh46:
	ldr	x9, [x9, _WPS_PIN_DISPLAY@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
Lloh48:
	adrp	x10, _WPS_PIN_KEYPAD@GOTPAGE
Lloh49:
	ldr	x10, [x10, _WPS_PIN_KEYPAD@GOTPAGEOFF]
Lloh50:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_11
; %bb.10:
Lloh51:
	adrp	x8, _WPS_CONFIG_DISPLAY@GOTPAGE
Lloh52:
	ldr	x8, [x8, _WPS_CONFIG_DISPLAY@GOTPAGEOFF]
Lloh53:
	ldr	x8, [x8]
Lloh54:
	adrp	x9, _WPS_CONFIG_KEYPAD@GOTPAGE
Lloh55:
	ldr	x9, [x9, _WPS_CONFIG_KEYPAD@GOTPAGEOFF]
Lloh56:
	ldr	x9, [x9]
	orr	x1, x9, x8
	b	LBB0_12
LBB0_11:
	mov	x1, #0
LBB0_12:
	mov	x0, x19
	bl	_wpabuf_put_be16
	ldr	x8, [x21]
	ldr	x1, [x8, #32]
	mov	x0, x19
	mov	w2, #8
	bl	_wpabuf_put_data
	ldr	x8, [x21]
	ldr	x1, [x8, #8]
	mov	x0, x19
	bl	_wpabuf_put_u8
	ldr	x8, [x21]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_15
; %bb.13:
	mov	x22, #0
Lloh57:
	adrp	x23, _WPS_DEV_TYPE_LEN@GOTPAGE
Lloh58:
	ldr	x23, [x23, _WPS_DEV_TYPE_LEN@GOTPAGEOFF]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #24]
	ldr	x1, [x8, x22, lsl #3]
	ldr	x2, [x23]
	mov	x0, x19
	bl	_wpabuf_put_data
	add	x22, x22, #1
	ldr	x8, [x21]
	ldr	x9, [x8, #8]
	cmp	x22, x9
	b.lo	LBB0_14
LBB0_15:
	ldr	x0, [x8, #16]
	cbz	x0, LBB0_17
; %bb.16:
	bl	_os_strlen
	mov	x22, x0
	b	LBB0_18
LBB0_17:
	mov	x22, #0
LBB0_18:
Lloh59:
	adrp	x8, _ATTR_DEV_NAME@GOTPAGE
Lloh60:
	ldr	x8, [x8, _ATTR_DEV_NAME@GOTPAGEOFF]
Lloh61:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_wpabuf_put_be16
	mov	x0, x19
	mov	x1, x22
	bl	_wpabuf_put_be16
	ldr	x8, [x21]
	ldr	x1, [x8, #16]
	mov	x0, x19
	mov	x2, x22
	bl	_wpabuf_put_data
	mov	x0, x19
	mov	w1, #0
	bl	_wpabuf_put
	sub	x8, x0, x20
	lsr	x8, x8, #2
	sub	w1, w8, #2
	mov	x0, x20
	bl	_WPA_PUT_LE16
Lloh62:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh63:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh64:
	ldr	w0, [x8]
Lloh65:
	adrp	x1, l_.str@PAGE
Lloh66:
	add	x1, x1, l_.str@PAGEOFF
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_wpa_printf
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.cfi_endproc
                                        ; -- End function
	.comm	_P2P_ATTR_DEVICE_INFO,8,3       ; @P2P_ATTR_DEVICE_INFO
	.comm	_ETH_ALEN,8,3                   ; @ETH_ALEN
	.comm	_WPS_NOT_READY,8,3              ; @WPS_NOT_READY
	.comm	_WPS_PBC,8,3                    ; @WPS_PBC
	.comm	_WPS_CONFIG_PUSHBUTTON,8,3      ; @WPS_CONFIG_PUSHBUTTON
	.comm	_WPS_P2PS,8,3                   ; @WPS_P2PS
	.comm	_WPS_CONFIG_P2PS,8,3            ; @WPS_CONFIG_P2PS
	.comm	_WPS_PIN_DISPLAY,8,3            ; @WPS_PIN_DISPLAY
	.comm	_WPS_PIN_KEYPAD,8,3             ; @WPS_PIN_KEYPAD
	.comm	_WPS_CONFIG_DISPLAY,8,3         ; @WPS_CONFIG_DISPLAY
	.comm	_WPS_CONFIG_KEYPAD,8,3          ; @WPS_CONFIG_KEYPAD
	.comm	_WPS_DEV_TYPE_LEN,8,3           ; @WPS_DEV_TYPE_LEN
	.comm	_ATTR_DEV_NAME,8,3              ; @ATTR_DEV_NAME
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"P2P: * Device Info"

.subsections_via_symbols
