	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_monitor_vdev_create
_ath10k_monitor_vdev_create:            ## @ath10k_monitor_vdev_create
	.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
	movq	%rdi, %rbx
	addq	$16, %rdi
	callq	_lockdep_assert_held
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	callq	___ffs64
	movl	%eax, 8(%rbx)
	movq	_WMI_VDEV_TYPE_MONITOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	12(%rbx), %r8d
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%ecx, %ecx
	callq	_ath10k_wmi_vdev_create
	movl	8(%rbx), %edx
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_ath10k_warn
	movl	%r15d, %r14d
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_ath10k_warn
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_5
LBB0_4:
	movq	$-2, %rax
	movl	%edx, %ecx
	rolq	%cl, %rax
	andq	%rax, (%rbx)
	movslq	%edx, %rcx
	movq	_ATH10K_DBG_MAC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	callq	_ath10k_dbg
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to find free vdev id for monitor vdev\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_WMI_VDEV_TYPE_MONITOR,4,2      ## @WMI_VDEV_TYPE_MONITOR
L_.str.1:                               ## @.str.1
	.asciz	"failed to request monitor vdev %i creation: %d\n"

	.comm	_ATH10K_DBG_MAC,4,2             ## @ATH10K_DBG_MAC
L_.str.2:                               ## @.str.2
	.asciz	"mac monitor vdev %d created\n"

	.no_dead_strip	_ath10k_monitor_vdev_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_monitor_vdev_create
_ath10k_monitor_vdev_create:            ; @ath10k_monitor_vdev_create
	.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, x0, #16
	bl	_lockdep_assert_held
	ldr	x0, [x19]
	cbz	x0, LBB0_3
; %bb.1:
	bl	___ffs64
	mov	x1, x0
	str	w0, [x19, #8]
Lloh0:
	adrp	x8, _WMI_VDEV_TYPE_MONITOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WMI_VDEV_TYPE_MONITOR@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	ldr	w4, [x19, #12]
	mov	x0, x19
	mov	w3, #0
	bl	_ath10k_wmi_vdev_create
	mov	x20, x0
	ldr	w8, [x19, #8]
	cbz	w0, LBB0_4
; %bb.2:
	stp	x8, x20, [sp]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
	b	LBB0_5
LBB0_3:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_5
LBB0_4:
	sxtw	x3, w8
	mov	w9, #1
	lsl	x8, x9, x8
	ldr	x9, [x19]
	bic	x8, x9, x8
	str	x8, [x19]
Lloh10:
	adrp	x8, _ATH10K_DBG_MAC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ATH10K_DBG_MAC@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str.2@PAGE
Lloh14:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_ath10k_dbg
LBB0_5:
	mov	x0, x20
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to find free vdev id for monitor vdev\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_WMI_VDEV_TYPE_MONITOR,4,2      ; @WMI_VDEV_TYPE_MONITOR
l_.str.1:                               ; @.str.1
	.asciz	"failed to request monitor vdev %i creation: %d\n"

	.comm	_ATH10K_DBG_MAC,4,2             ; @ATH10K_DBG_MAC
l_.str.2:                               ; @.str.2
	.asciz	"mac monitor vdev %d created\n"

	.no_dead_strip	_ath10k_monitor_vdev_create
.subsections_via_symbols
