	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_mac_ext_resource_config ## -- Begin function ath10k_mac_ext_resource_config
	.p2align	4, 0x90
_ath10k_mac_ext_resource_config:        ## @ath10k_mac_ext_resource_config
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_WMI_SERVICE_TX_MODE_DYNAMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_WMI_HOST_PLATFORM_HIGH_PERF@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_WMI_HOST_PLATFORM_LOW_PERF@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_ath10k_wmi_ext_resource_config
	movl	%eax, %ebx
	xorl	%eax, %eax
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.4:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%ebx, %ecx
	je	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_ath10k_warn
	movl	%ebx, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WMI_SERVICE_TX_MODE_DYNAMIC,4,2 ## @WMI_SERVICE_TX_MODE_DYNAMIC
	.comm	_WMI_HOST_PLATFORM_LOW_PERF,4,2 ## @WMI_HOST_PLATFORM_LOW_PERF
	.comm	_WMI_HOST_PLATFORM_HIGH_PERF,4,2 ## @WMI_HOST_PLATFORM_HIGH_PERF
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to configure ext resource: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_mac_ext_resource_config ; -- Begin function ath10k_mac_ext_resource_config
	.p2align	2
_ath10k_mac_ext_resource_config:        ; @ath10k_mac_ext_resource_config
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _WMI_SERVICE_TX_MODE_DYNAMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WMI_SERVICE_TX_MODE_DYNAMIC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_test_bit
Lloh3:
	adrp	x8, _WMI_HOST_PLATFORM_HIGH_PERF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WMI_HOST_PLATFORM_HIGH_PERF@GOTPAGEOFF]
Lloh5:
	adrp	x9, _WMI_HOST_PLATFORM_LOW_PERF@GOTPAGE
Lloh6:
	ldr	x9, [x9, _WMI_HOST_PLATFORM_LOW_PERF@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_ath10k_wmi_ext_resource_config
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.1:
Lloh7:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmn	w20, w8
	b.ne	LBB0_3
; %bb.2:
	mov	w20, #0
	b	LBB0_4
LBB0_3:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_ath10k_warn
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_WMI_SERVICE_TX_MODE_DYNAMIC,4,2 ; @WMI_SERVICE_TX_MODE_DYNAMIC
	.comm	_WMI_HOST_PLATFORM_LOW_PERF,4,2 ; @WMI_HOST_PLATFORM_LOW_PERF
	.comm	_WMI_HOST_PLATFORM_HIGH_PERF,4,2 ; @WMI_HOST_PLATFORM_HIGH_PERF
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to configure ext resource: %d\n"

.subsections_via_symbols
