	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_driver_privsep_get_ssid
_wpa_driver_privsep_get_ssid:           ## @wpa_driver_privsep_get_ssid
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	%rsp, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SSID_MAX_LEN@GOTPCREL(%rip), %r14
	movslq	(%r14), %rax
	leaq	16(,%rax,4), %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	%rbx, -64(%rbp)
	movq	_PRIVSEP_CMD_GET_SSID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %r9
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r12, %r8
	callq	_wpa_priv_cmd
	movl	$-1, %r15d
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	cmpq	$4, -64(%rbp)
	jb	LBB0_7
## %bb.2:
	leaq	-52(%rbp), %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_os_memcpy
	movl	-52(%rbp), %edx
	testl	%edx, %edx
	js	LBB0_5
## %bb.3:
	cmpl	(%r14), %edx
	jg	LBB0_5
## %bb.4:
	leaq	4(%rdx), %rax
	cmpq	-64(%rbp), %rax
	jbe	LBB0_6
LBB0_5:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	jmp	LBB0_7
LBB0_6:
	addq	$16, %r12
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_os_memcpy
	movl	-52(%rbp), %r15d
LBB0_7:
	movq	%r13, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SSID_MAX_LEN,4,2               ## @SSID_MAX_LEN
	.comm	_PRIVSEP_CMD_GET_SSID,4,2       ## @PRIVSEP_CMD_GET_SSID
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"privsep: Invalid get SSID reply"

	.no_dead_strip	_wpa_driver_privsep_get_ssid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpa_driver_privsep_get_ssid
_wpa_driver_privsep_get_ssid:           ; @wpa_driver_privsep_get_ssid
	.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
	sub	sp, sp, #32
	mov	x19, x1
	mov	x21, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x22, _SSID_MAX_LEN@GOTPAGE
Lloh4:
	ldr	x22, [x22, _SSID_MAX_LEN@GOTPAGEOFF]
	ldrsw	x8, [x22]
	lsl	x12, x8, #2
	add	x8, x12, #16
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x12, #31
	and	x10, x10, #0xfffffffffffffff0
	sub	x20, x9, x10
	mov	sp, x20
	stur	x8, [x29, #-56]
Lloh7:
	adrp	x8, _PRIVSEP_CMD_GET_SSID@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PRIVSEP_CMD_GET_SSID@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	sub	x5, x29, #56
	mov	x2, #0
	mov	w3, #0
	mov	x4, x20
	bl	_wpa_priv_cmd
	mov	x8, x0
	mov	w0, #-1
	tbnz	w8, #31, LBB0_7
; %bb.1:
	ldur	x8, [x29, #-56]
	cmp	x8, #4
	b.lo	LBB0_7
; %bb.2:
	sub	x0, x29, #44
	mov	x1, x20
	mov	w2, #4
	bl	_os_memcpy
	ldur	w2, [x29, #-44]
	tbnz	w2, #31, LBB0_5
; %bb.3:
	ldr	w8, [x22]
	cmp	w2, w8
	b.gt	LBB0_5
; %bb.4:
	add	x8, x2, #4
	ldur	x9, [x29, #-56]
	cmp	x8, x9
	b.ls	LBB0_6
LBB0_5:
Lloh10:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	w0, #-1
	b	LBB0_7
LBB0_6:
	add	x1, x20, #16
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_os_memcpy
	ldur	w0, [x29, #-44]
LBB0_7:
	mov	sp, x21
	ldur	x8, [x29, #-40]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	sub	sp, x29, #32
	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
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SSID_MAX_LEN,4,2               ; @SSID_MAX_LEN
	.comm	_PRIVSEP_CMD_GET_SSID,4,2       ; @PRIVSEP_CMD_GET_SSID
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"privsep: Invalid get SSID reply"

	.no_dead_strip	_wpa_driver_privsep_get_ssid
.subsections_via_symbols
