	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getbssid
_getbssid:                              ## @getbssid
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movl	%edi, %r15d
	leaq	-56(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	-36(%rbp), %edi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_strncpy
	movq	_IEEE80211_IOC_BSSID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	%rbx, -48(%rbp)
	movq	_IEEE80211_ADDR_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_SIOCG80211@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	movq	%r12, %rdx
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$-1, %edi
	movq	%r14, %rdx
	callq	_err
LBB0_2:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_ADDR_LEN,4,2         ## @IEEE80211_ADDR_LEN
	.comm	_IEEE80211_IOC_BSSID,4,2        ## @IEEE80211_IOC_BSSID
	.comm	_SIOCG80211,4,2                 ## @SIOCG80211
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: cannot fetch bssid"

	.no_dead_strip	_getbssid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getbssid
_getbssid:                              ; @getbssid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	w0, [sp, #28]
	mov	x1, x19
	mov	w2, #4
	bl	_strncpy
Lloh0:
	adrp	x8, _IEEE80211_IOC_BSSID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_IOC_BSSID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #24]
Lloh3:
	adrp	x8, _IEEE80211_ADDR_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_ADDR_LEN@GOTPAGEOFF]
	str	x20, [sp, #16]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh6:
	adrp	x8, _SIOCG80211@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SIOCG80211@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x21
	bl	_ioctl
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #-1
	mov	x2, x19
	bl	_err
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_ADDR_LEN,4,2         ; @IEEE80211_ADDR_LEN
	.comm	_IEEE80211_IOC_BSSID,4,2        ; @IEEE80211_IOC_BSSID
	.comm	_SIOCG80211,4,2                 ; @SIOCG80211
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: cannot fetch bssid"

	.no_dead_strip	_getbssid
.subsections_via_symbols
