	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getid
_getid:                                 ## @getid
	.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
	movl	%r9d, %r15d
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r13
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movl	%edi, %r12d
	leaq	-72(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movl	-44(%rbp), %edi
	movq	_name@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_strlcpy
	testl	%r15d, %r15d
	jne	LBB0_1
## %bb.2:
	movq	_IEEE80211_IOC_SSID@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_IEEE80211_IOC_MESH_ID@GOTPCREL(%rip), %rax
LBB0_3:
	leaq	-72(%rbp), %rdx
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	%r14d, -72(%rbp)
	movq	%rbx, -56(%rbp)
	movq	%r13, -64(%rbp)
	movq	_SIOCG80211@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_4
## %bb.5:
	movl	-64(%rbp), %eax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_4:
	movl	$-1, %eax
LBB0_6:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_name,4,2                       ## @name
	.comm	_IEEE80211_IOC_SSID,4,2         ## @IEEE80211_IOC_SSID
	.comm	_IEEE80211_IOC_MESH_ID,4,2      ## @IEEE80211_IOC_MESH_ID
	.comm	_SIOCG80211,4,2                 ## @SIOCG80211
	.no_dead_strip	_getid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getid
_getid:                                 ; @getid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x5
	mov	x19, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	ldr	w0, [sp, #28]
Lloh0:
	adrp	x8, _name@GOTPAGE
Lloh1:
	ldr	x8, [x8, _name@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #4
	bl	_strlcpy
Lloh3:
	adrp	x8, _IEEE80211_IOC_SSID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_IOC_SSID@GOTPAGEOFF]
Lloh5:
	adrp	x9, _IEEE80211_IOC_MESH_ID@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IEEE80211_IOC_MESH_ID@GOTPAGEOFF]
	cmp	w20, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [sp, #24]
	str	w23, [sp]
	stp	x21, x22, [sp, #8]
Lloh7:
	adrp	x8, _SIOCG80211@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SIOCG80211@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x24
	bl	_ioctl
	tbnz	x0, #63, LBB0_2
; %bb.1:
	mov	w0, #0
	ldr	x8, [sp, #8]
	str	w8, [x19]
	b	LBB0_3
LBB0_2:
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_name,4,2                       ; @name
	.comm	_IEEE80211_IOC_SSID,4,2         ; @IEEE80211_IOC_SSID
	.comm	_IEEE80211_IOC_MESH_ID,4,2      ; @IEEE80211_IOC_MESH_ID
	.comm	_SIOCG80211,4,2                 ; @SIOCG80211
	.no_dead_strip	_getid
.subsections_via_symbols
