	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get80211opmode
_get80211opmode:                        ## @get80211opmode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	-24(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	-20(%rbp), %edi
	movl	8(%rbx), %esi
	movl	$4, %edx
	callq	_os_strlcpy
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movq	_SIOCGIFMEDIA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_11
## %bb.1:
	movl	-24(%rbp), %eax
	movq	_IFM_IEEE80211_ADHOC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.2:
	movq	_IFM_FLAG0@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.6:
	movq	_IEEE80211_M_AHDEMO@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_4:
	movq	_IFM_IEEE80211_HOSTAP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.5:
	movq	_IEEE80211_M_HOSTAP@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_7:
	movq	_IFM_IEEE80211_IBSS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
LBB0_3:
	movq	_IEEE80211_M_IBSS@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_9:
	movq	_IFM_IEEE80211_MONITOR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.10:
	movq	_IEEE80211_M_MONITOR@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	movq	_IEEE80211_M_STA@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIOCGIFMEDIA,4,2               ## @SIOCGIFMEDIA
	.comm	_IFM_IEEE80211_ADHOC,4,2        ## @IFM_IEEE80211_ADHOC
	.comm	_IFM_FLAG0,4,2                  ## @IFM_FLAG0
	.comm	_IEEE80211_M_AHDEMO,4,2         ## @IEEE80211_M_AHDEMO
	.comm	_IEEE80211_M_IBSS,4,2           ## @IEEE80211_M_IBSS
	.comm	_IFM_IEEE80211_HOSTAP,4,2       ## @IFM_IEEE80211_HOSTAP
	.comm	_IEEE80211_M_HOSTAP,4,2         ## @IEEE80211_M_HOSTAP
	.comm	_IFM_IEEE80211_IBSS,4,2         ## @IFM_IEEE80211_IBSS
	.comm	_IFM_IEEE80211_MONITOR,4,2      ## @IFM_IEEE80211_MONITOR
	.comm	_IEEE80211_M_MONITOR,4,2        ## @IEEE80211_M_MONITOR
	.comm	_IEEE80211_M_STA,4,2            ## @IEEE80211_M_STA
	.comm	_IEEE80211_M_MBSS,4,2           ## @IEEE80211_M_MBSS
	.comm	_IFM_IEEE80211_MBSS,4,2         ## @IFM_IEEE80211_MBSS
	.no_dead_strip	_get80211opmode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get80211opmode
_get80211opmode:                        ; @get80211opmode
	.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
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w0, [sp, #12]
	ldr	w1, [x19, #8]
	mov	w2, #4
	bl	_os_strlcpy
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh0:
	adrp	x8, _SIOCGIFMEDIA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIOCGIFMEDIA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
	tbnz	x0, #63, LBB0_9
; %bb.1:
	ldr	w8, [sp, #8]
Lloh3:
	adrp	x9, _IFM_IEEE80211_ADHOC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IFM_IEEE80211_ADHOC@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
Lloh6:
	adrp	x9, _IFM_FLAG0@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IFM_FLAG0@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _IEEE80211_M_AHDEMO@GOTPAGE
Lloh10:
	ldr	x10, [x10, _IEEE80211_M_AHDEMO@GOTPAGEOFF]
Lloh11:
	adrp	x11, _IEEE80211_M_IBSS@GOTPAGE
Lloh12:
	ldr	x11, [x11, _IEEE80211_M_IBSS@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x11, x10, eq
	b	LBB0_10
LBB0_3:
Lloh13:
	adrp	x9, _IFM_IEEE80211_HOSTAP@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IFM_IEEE80211_HOSTAP@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
Lloh16:
	adrp	x8, _IEEE80211_M_HOSTAP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IEEE80211_M_HOSTAP@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
Lloh18:
	adrp	x9, _IFM_IEEE80211_IBSS@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IFM_IEEE80211_IBSS@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh21:
	adrp	x8, _IEEE80211_M_IBSS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IEEE80211_M_IBSS@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
Lloh23:
	adrp	x9, _IFM_IEEE80211_MONITOR@GOTPAGE
Lloh24:
	ldr	x9, [x9, _IFM_IEEE80211_MONITOR@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
Lloh26:
	adrp	x8, _IEEE80211_M_MONITOR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IEEE80211_M_MONITOR@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh28:
	adrp	x8, _IEEE80211_M_STA@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IEEE80211_M_STA@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_SIOCGIFMEDIA,4,2               ; @SIOCGIFMEDIA
	.comm	_IFM_IEEE80211_ADHOC,4,2        ; @IFM_IEEE80211_ADHOC
	.comm	_IFM_FLAG0,4,2                  ; @IFM_FLAG0
	.comm	_IEEE80211_M_AHDEMO,4,2         ; @IEEE80211_M_AHDEMO
	.comm	_IEEE80211_M_IBSS,4,2           ; @IEEE80211_M_IBSS
	.comm	_IFM_IEEE80211_HOSTAP,4,2       ; @IFM_IEEE80211_HOSTAP
	.comm	_IEEE80211_M_HOSTAP,4,2         ; @IEEE80211_M_HOSTAP
	.comm	_IFM_IEEE80211_IBSS,4,2         ; @IFM_IEEE80211_IBSS
	.comm	_IFM_IEEE80211_MONITOR,4,2      ; @IFM_IEEE80211_MONITOR
	.comm	_IEEE80211_M_MONITOR,4,2        ; @IEEE80211_M_MONITOR
	.comm	_IEEE80211_M_STA,4,2            ; @IEEE80211_M_STA
	.comm	_IEEE80211_M_MBSS,4,2           ; @IEEE80211_M_MBSS
	.comm	_IFM_IEEE80211_MBSS,4,2         ; @IFM_IEEE80211_MBSS
	.no_dead_strip	_get80211opmode
.subsections_via_symbols
