	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_dbus_getter_p2p_peer_modelnumber ## -- Begin function wpas_dbus_getter_p2p_peer_modelnumber
	.p2align	4, 0x90
_wpas_dbus_getter_p2p_peer_modelnumber: ## @wpas_dbus_getter_p2p_peer_modelnumber
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	8(%rcx), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r15, %rcx
	callq	_wpa_dbus_p2p_check_enabled
	movq	_FALSE@GOTPCREL(%rip), %r12
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	xorl	%edx, %edx
	callq	_p2p_get_peer_found
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	(%rax), %edi
	callq	_os_strdup
	movq	%rax, -40(%rbp)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	_DBUS_TYPE_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r15, %rcx
	callq	_wpas_dbus_simple_property_getter
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	-40(%rbp), %rdi
	callq	_os_free
	movq	_TRUE@GOTPCREL(%rip), %r12
	jmp	LBB0_8
LBB0_2:
	movq	_DBUS_ERROR_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_dbus_set_error
	jmp	LBB0_8
LBB0_4:
	movq	_DBUS_ERROR_NO_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	callq	_dbus_set_error_const
	jmp	LBB0_8
LBB0_6:
	movq	_DBUS_ERROR_NO_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	callq	_dbus_set_error_const
	movq	-40(%rbp), %rdi
	callq	_os_free
LBB0_8:
	movl	(%r12), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_DBUS_ERROR_FAILED,4,2          ## @DBUS_ERROR_FAILED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to find peer"

	.comm	_DBUS_ERROR_NO_MEMORY,4,2       ## @DBUS_ERROR_NO_MEMORY
L_.str.1:                               ## @.str.1
	.asciz	"no memory"

	.comm	_DBUS_TYPE_STRING,4,2           ## @DBUS_TYPE_STRING
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_dbus_getter_p2p_peer_modelnumber ; -- Begin function wpas_dbus_getter_p2p_peer_modelnumber
	.p2align	2
_wpas_dbus_getter_p2p_peer_modelnumber: ; @wpas_dbus_getter_p2p_peer_modelnumber
	.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
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	ldr	x0, [x3, #8]
	mov	x1, #0
	mov	x2, #0
	mov	x3, x19
	bl	_wpa_dbus_p2p_check_enabled
	cbz	w0, LBB0_8
; %bb.1:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	w0, [x8]
	ldr	w1, [x21]
	mov	w2, #0
	bl	_p2p_get_peer_found
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w0, [x0]
	bl	_os_strdup
	str	x0, [sp, #8]
	cbz	x0, LBB0_6
; %bb.3:
Lloh0:
	adrp	x8, _DBUS_TYPE_STRING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DBUS_TYPE_STRING@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x20
	mov	x3, x19
	bl	_wpas_dbus_simple_property_getter
	cbz	w0, LBB0_7
; %bb.4:
	ldr	x0, [sp, #8]
	bl	_os_free
Lloh3:
	adrp	x8, _TRUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
Lloh5:
	adrp	x8, _DBUS_ERROR_FAILED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DBUS_ERROR_FAILED@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dbus_set_error
	b	LBB0_8
LBB0_6:
Lloh10:
	adrp	x8, _DBUS_ERROR_NO_MEMORY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DBUS_ERROR_NO_MEMORY@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dbus_set_error_const
	b	LBB0_8
LBB0_7:
Lloh15:
	adrp	x8, _DBUS_ERROR_NO_MEMORY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DBUS_ERROR_NO_MEMORY@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x2, l_.str.1@PAGE
Lloh19:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dbus_set_error_const
	ldr	x0, [sp, #8]
	bl	_os_free
LBB0_8:
Lloh20:
	adrp	x8, _FALSE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_DBUS_ERROR_FAILED,4,2          ; @DBUS_ERROR_FAILED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to find peer"

	.comm	_DBUS_ERROR_NO_MEMORY,4,2       ; @DBUS_ERROR_NO_MEMORY
l_.str.1:                               ; @.str.1
	.asciz	"no memory"

	.comm	_DBUS_TYPE_STRING,4,2           ; @DBUS_TYPE_STRING
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
