	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_htc_set_opmode
_ath9k_htc_set_opmode:                  ## @ath9k_htc_set_opmode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpq	$0, 24(%rdi)
	je	LBB0_2
## %bb.1:
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	cmpq	$0, 16(%rdi)
	je	LBB0_4
## %bb.3:
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	cmpq	$0, 8(%rdi)
	jne	LBB0_5
## %bb.6:
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_NL80211_IFTYPE_MESH_POINT@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movq	(%rdi), %rdi
	movl	%eax, (%rdi)
	popq	%rbp
	jmp	_ath9k_hw_setopmode             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_ADHOC,4,2       ## @NL80211_IFTYPE_ADHOC
	.comm	_NL80211_IFTYPE_AP,4,2          ## @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_MESH_POINT,4,2  ## @NL80211_IFTYPE_MESH_POINT
	.comm	_NL80211_IFTYPE_STATION,4,2     ## @NL80211_IFTYPE_STATION
	.no_dead_strip	_ath9k_htc_set_opmode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_htc_set_opmode
_ath9k_htc_set_opmode:                  ; @ath9k_htc_set_opmode
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _NL80211_IFTYPE_AP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NL80211_IFTYPE_AP@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	ldr	x8, [x0, #8]
Lloh4:
	adrp	x9, _NL80211_IFTYPE_MESH_POINT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _NL80211_IFTYPE_MESH_POINT@GOTPAGEOFF]
Lloh6:
	adrp	x10, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh7:
	ldr	x10, [x10, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
LBB0_5:
	ldr	w8, [x8]
	ldr	x0, [x0]
	str	w8, [x0]
	b	_ath9k_hw_setopmode
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_ADHOC,4,2       ; @NL80211_IFTYPE_ADHOC
	.comm	_NL80211_IFTYPE_AP,4,2          ; @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_MESH_POINT,4,2  ; @NL80211_IFTYPE_MESH_POINT
	.comm	_NL80211_IFTYPE_STATION,4,2     ; @NL80211_IFTYPE_STATION
	.no_dead_strip	_ath9k_htc_set_opmode
.subsections_via_symbols
