	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_hw_set_operating_mode
_ath9k_hw_set_operating_mode:           ## @ath9k_hw_set_operating_mode
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	_AR_STA_ID1_STA_AP@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_AR_STA_ID1_ADHOC@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_AR_STA_ID1_KSRCH_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	callq	_ENABLE_REG_RMW_BUFFER
	leal	-129(%rbx), %eax
	cmpl	$3, %eax
	jae	LBB0_1
LBB0_5:
	orl	(%r13), %r15d
	jmp	LBB0_6
LBB0_1:
	cmpl	$128, %ebx
	je	LBB0_6
## %bb.2:
	cmpl	$132, %ebx
	jne	LBB0_7
## %bb.3:
	movq	%r12, %rdi
	callq	_AR_SREV_9340_13
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	_AR_STA_ID1_ADHOC@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_AR_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_CFG_AP_ADHOC_INDICATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_REG_SET_BIT
	jmp	LBB0_8
LBB0_6:
	movq	_AR_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_CFG_AP_ADHOC_INDICATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_REG_CLR_BIT
LBB0_8:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	orl	%eax, %r14d
	movq	_AR_STA_ID1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_REG_RMW
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REG_RMW_BUFFER_FLUSH           ## TAILCALL
LBB0_7:
	movl	(%r12), %eax
	testl	%eax, %eax
	cmovel	%eax, %r15d
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_AR_STA_ID1_STA_AP,4,2          ## @AR_STA_ID1_STA_AP
	.comm	_AR_STA_ID1_ADHOC,4,2           ## @AR_STA_ID1_ADHOC
	.comm	_AR_STA_ID1_KSRCH_MODE,4,2      ## @AR_STA_ID1_KSRCH_MODE
	.comm	_AR_CFG,4,2                     ## @AR_CFG
	.comm	_AR_CFG_AP_ADHOC_INDICATION,4,2 ## @AR_CFG_AP_ADHOC_INDICATION
	.comm	_AR_STA_ID1,4,2                 ## @AR_STA_ID1
	.no_dead_strip	_ath9k_hw_set_operating_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_hw_set_operating_mode
_ath9k_hw_set_operating_mode:           ; @ath9k_hw_set_operating_mode
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _AR_STA_ID1_STA_AP@GOTPAGE
Lloh1:
	ldr	x24, [x24, _AR_STA_ID1_STA_AP@GOTPAGEOFF]
	ldr	w22, [x24]
Lloh2:
	adrp	x25, _AR_STA_ID1_ADHOC@GOTPAGE
Lloh3:
	ldr	x25, [x25, _AR_STA_ID1_ADHOC@GOTPAGEOFF]
	ldr	w23, [x25]
Lloh4:
	adrp	x8, _AR_STA_ID1_KSRCH_MODE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AR_STA_ID1_KSRCH_MODE@GOTPAGEOFF]
Lloh6:
	ldr	w20, [x8]
	bl	_ENABLE_REG_RMW_BUFFER
	sub	w8, w21, #129
	cmp	w8, #3
	b.hs	LBB0_2
LBB0_1:
	ldr	w8, [x24]
	orr	w20, w8, w20
	b	LBB0_6
LBB0_2:
	cmp	w21, #128
	b.eq	LBB0_6
; %bb.3:
	cmp	w21, #132
	b.ne	LBB0_8
; %bb.4:
	mov	x0, x19
	bl	_AR_SREV_9340_13
	cbnz	w0, LBB0_1
; %bb.5:
	ldr	w8, [x25]
	orr	w20, w8, w20
Lloh7:
	adrp	x8, _AR_CFG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AR_CFG@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _AR_CFG_AP_ADHOC_INDICATION@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AR_CFG_AP_ADHOC_INDICATION@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_REG_SET_BIT
	b	LBB0_7
LBB0_6:
Lloh13:
	adrp	x8, _AR_CFG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AR_CFG@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _AR_CFG_AP_ADHOC_INDICATION@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AR_CFG_AP_ADHOC_INDICATION@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_REG_CLR_BIT
LBB0_7:
	orr	w3, w23, w22
Lloh19:
	adrp	x8, _AR_STA_ID1@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AR_STA_ID1@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_REG_RMW
	mov	x0, x19
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_REG_RMW_BUFFER_FLUSH
LBB0_8:
	ldr	w8, [x19]
	cmp	w8, #0
	csel	w20, wzr, w20, eq
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_AR_STA_ID1_STA_AP,4,2          ; @AR_STA_ID1_STA_AP
	.comm	_AR_STA_ID1_ADHOC,4,2           ; @AR_STA_ID1_ADHOC
	.comm	_AR_STA_ID1_KSRCH_MODE,4,2      ; @AR_STA_ID1_KSRCH_MODE
	.comm	_AR_CFG,4,2                     ; @AR_CFG
	.comm	_AR_CFG_AP_ADHOC_INDICATION,4,2 ; @AR_CFG_AP_ADHOC_INDICATION
	.comm	_AR_STA_ID1,4,2                 ; @AR_STA_ID1
	.no_dead_strip	_ath9k_hw_set_operating_mode
.subsections_via_symbols
