	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_driver_openbsd_get_ssid
_wpa_driver_openbsd_get_ssid:           ## @wpa_driver_openbsd_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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_os_memset
	movl	-48(%rbp), %edi
	movl	4(%rbx), %esi
	movl	$4, %edx
	callq	_os_strlcpy
	leaq	-40(%rbp), %rax
	movq	%rax, -56(%rbp)
	movl	(%rbx), %edi
	movq	_SIOCG80211NWID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_ioctl
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	js	LBB0_3
## %bb.1:
	movq	-40(%rbp), %rdx
	movq	_IEEE80211_NWID_LEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jg	LBB0_3
## %bb.2:
	movl	-32(%rbp), %esi
	movq	%r14, %rdi
	callq	_os_memcpy
	movl	-40(%rbp), %eax
LBB0_3:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIOCG80211NWID,4,2             ## @SIOCG80211NWID
	.comm	_IEEE80211_NWID_LEN,8,3         ## @IEEE80211_NWID_LEN
	.no_dead_strip	_wpa_driver_openbsd_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_openbsd_get_ssid
_wpa_driver_openbsd_get_ssid:           ; @wpa_driver_openbsd_get_ssid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x1
	mov	x20, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_os_memset
	ldr	w0, [sp, #8]
	ldr	w1, [x20, #4]
	mov	w2, #4
	bl	_os_strlcpy
	add	x8, sp, #16
	str	x8, [sp]
	ldr	w0, [x20]
Lloh0:
	adrp	x8, _SIOCG80211NWID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIOCG80211NWID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_ioctl
	tbnz	x0, #63, LBB0_2
; %bb.1:
	ldr	x2, [sp, #16]
Lloh3:
	adrp	x8, _IEEE80211_NWID_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_NWID_LEN@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x2, x8
	b.le	LBB0_3
LBB0_2:
	mov	w0, #-1
	b	LBB0_4
LBB0_3:
	ldr	w1, [sp, #24]
	mov	x0, x19
	bl	_os_memcpy
	ldr	w0, [sp, #16]
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SIOCG80211NWID,4,2             ; @SIOCG80211NWID
	.comm	_IEEE80211_NWID_LEN,8,3         ; @IEEE80211_NWID_LEN
	.no_dead_strip	_wpa_driver_openbsd_get_ssid
.subsections_via_symbols
