	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_driver_openbsd_set_key
_wpa_driver_openbsd_set_key:            ## @wpa_driver_openbsd_set_key
	.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	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_WPA_ALG_PMK@GOTPCREL(%rip), %rax
	movl	$-1, %ebx
	cmpl	%edx, (%rax)
	jne	LBB0_4
## %bb.1:
	movq	40(%rbp), %r15
	movq	_IEEE80211_PMK_LEN@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jb	LBB0_4
## %bb.2:
	movq	%rsi, %r14
	leaq	-40(%rbp), %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movl	-32(%rbp), %edi
	movl	4(%r14), %esi
	movl	$4, %edx
	callq	_os_strlcpy
	movl	-36(%rbp), %esi
	movq	%r14, %rdi
	callq	_wpa_driver_openbsd_get_bssid
	testq	%rax, %rax
	js	LBB0_4
## %bb.3:
	movq	32(%rbp), %rsi
	movl	-40(%rbp), %edi
	movq	%r15, %rdx
	callq	_memcpy
	movl	(%r14), %edi
	movq	_SIOCS80211KEYAVAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	callq	_ioctl
	movq	%rax, %rbx
	sarq	$63, %rbx
LBB0_4:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WPA_ALG_PMK,4,2                ## @WPA_ALG_PMK
	.comm	_IEEE80211_PMK_LEN,8,3          ## @IEEE80211_PMK_LEN
	.comm	_SIOCS80211KEYAVAIL,4,2         ## @SIOCS80211KEYAVAIL
	.no_dead_strip	_wpa_driver_openbsd_set_key
.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_set_key
_wpa_driver_openbsd_set_key:            ; @wpa_driver_openbsd_set_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	x20, [x29, #24]
Lloh0:
	adrp	x8, _WPA_ALG_PMK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WPA_ALG_PMK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IEEE80211_PMK_LEN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_PMK_LEN@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	w8, w2
	ccmp	x9, x20, #0, eq
	b.lo	LBB0_3
; %bb.1:
	mov	x19, x1
	mov	x0, sp
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	ldr	w0, [sp, #8]
	ldr	w1, [x19, #4]
	mov	w2, #4
	bl	_os_strlcpy
	ldr	w1, [sp, #4]
	mov	x0, x19
	bl	_wpa_driver_openbsd_get_bssid
	tbnz	x0, #63, LBB0_3
; %bb.2:
	ldr	x1, [x29, #16]
	ldr	w0, [sp]
	mov	x2, x20
	bl	_memcpy
	ldr	w0, [x19]
Lloh6:
	adrp	x8, _SIOCS80211KEYAVAIL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SIOCS80211KEYAVAIL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_ioctl
	asr	x0, x0, #63
	b	LBB0_4
LBB0_3:
	mov	w0, #-1
LBB0_4:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_WPA_ALG_PMK,4,2                ; @WPA_ALG_PMK
	.comm	_IEEE80211_PMK_LEN,8,3          ; @IEEE80211_PMK_LEN
	.comm	_SIOCS80211KEYAVAIL,4,2         ; @SIOCS80211KEYAVAIL
	.no_dead_strip	_wpa_driver_openbsd_set_key
.subsections_via_symbols
