	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hostap_monitor_set_type
_hostap_monitor_set_type:               ## @hostap_monitor_set_type
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	(%rdi), %rcx
	movq	_PRISM2_MONITOR_PRISM@GOTPCREL(%rip), %rdx
	movq	_PRISM2_MONITOR_CAPHDR@GOTPCREL(%rip), %rdi
	movq	_PRISM2_MONITOR_RADIOTAP@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jne	LBB0_2
## %bb.3:
	movq	_ARPHRD_IEEE80211_RADIOTAP@GOTPCREL(%rip), %rsi
	jmp	LBB0_4
LBB0_2:
	movq	_ARPHRD_IEEE80211@GOTPCREL(%rip), %rsi
LBB0_4:
	cmpq	(%rdi), %rcx
	movq	_ARPHRD_IEEE80211_PRISM@GOTPCREL(%rip), %rdi
	cmoveq	%rdi, %rsi
	cmpq	(%rdx), %rcx
	cmoveq	%rdi, %rsi
	movl	(%rsi), %ecx
	movl	%ecx, (%rax)
LBB0_5:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PRISM2_MONITOR_PRISM,8,3       ## @PRISM2_MONITOR_PRISM
	.comm	_PRISM2_MONITOR_CAPHDR,8,3      ## @PRISM2_MONITOR_CAPHDR
	.comm	_ARPHRD_IEEE80211_PRISM,4,2     ## @ARPHRD_IEEE80211_PRISM
	.comm	_PRISM2_MONITOR_RADIOTAP,8,3    ## @PRISM2_MONITOR_RADIOTAP
	.comm	_ARPHRD_IEEE80211_RADIOTAP,4,2  ## @ARPHRD_IEEE80211_RADIOTAP
	.comm	_ARPHRD_IEEE80211,4,2           ## @ARPHRD_IEEE80211
	.no_dead_strip	_hostap_monitor_set_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hostap_monitor_set_type
_hostap_monitor_set_type:               ; @hostap_monitor_set_type
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x9, [x0]
Lloh0:
	adrp	x10, _PRISM2_MONITOR_PRISM@GOTPAGE
Lloh1:
	ldr	x10, [x10, _PRISM2_MONITOR_PRISM@GOTPAGEOFF]
Lloh2:
	adrp	x11, _PRISM2_MONITOR_CAPHDR@GOTPAGE
Lloh3:
	ldr	x11, [x11, _PRISM2_MONITOR_CAPHDR@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
Lloh5:
	ldr	x11, [x11]
Lloh6:
	adrp	x12, _PRISM2_MONITOR_RADIOTAP@GOTPAGE
Lloh7:
	ldr	x12, [x12, _PRISM2_MONITOR_RADIOTAP@GOTPAGEOFF]
Lloh8:
	adrp	x13, _ARPHRD_IEEE80211_RADIOTAP@GOTPAGE
Lloh9:
	ldr	x13, [x13, _ARPHRD_IEEE80211_RADIOTAP@GOTPAGEOFF]
Lloh10:
	ldr	x12, [x12]
Lloh11:
	adrp	x14, _ARPHRD_IEEE80211@GOTPAGE
Lloh12:
	ldr	x14, [x14, _ARPHRD_IEEE80211@GOTPAGEOFF]
	cmp	x9, x12
	csel	x12, x13, x14, eq
	cmp	x9, x11
	ccmp	x9, x10, #4, ne
Lloh13:
	adrp	x9, _ARPHRD_IEEE80211_PRISM@GOTPAGE
Lloh14:
	ldr	x9, [x9, _ARPHRD_IEEE80211_PRISM@GOTPAGEOFF]
	csel	x9, x9, x12, eq
	ldr	w9, [x9]
	str	w9, [x8]
LBB0_2:
	ret
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PRISM2_MONITOR_PRISM,8,3       ; @PRISM2_MONITOR_PRISM
	.comm	_PRISM2_MONITOR_CAPHDR,8,3      ; @PRISM2_MONITOR_CAPHDR
	.comm	_ARPHRD_IEEE80211_PRISM,4,2     ; @ARPHRD_IEEE80211_PRISM
	.comm	_PRISM2_MONITOR_RADIOTAP,8,3    ; @PRISM2_MONITOR_RADIOTAP
	.comm	_ARPHRD_IEEE80211_RADIOTAP,4,2  ; @ARPHRD_IEEE80211_RADIOTAP
	.comm	_ARPHRD_IEEE80211,4,2           ; @ARPHRD_IEEE80211
	.no_dead_strip	_hostap_monitor_set_type
.subsections_via_symbols
