	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wcn36xx_dxe_alloc_ctl_blks     ## -- Begin function wcn36xx_dxe_alloc_ctl_blks
	.p2align	4, 0x90
_wcn36xx_dxe_alloc_ctl_blks:            ## @wcn36xx_dxe_alloc_ctl_blks
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_WCN36XX_DXE_CH_TX_L@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	88(%rdi), %rdi
	movl	%eax, 112(%rbx)
	movq	_WCN36XX_DXE_CH_TX_H@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 84(%rbx)
	movq	_WCN36XX_DXE_CH_RX_L@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movq	_WCN36XX_DXE_CH_RX_H@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_WCN36XX_DXE_CH_DESC_NUMB_TX_L@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 108(%rbx)
	movq	_WCN36XX_DXE_CH_DESC_NUMB_TX_H@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%rbx)
	movq	_WCN36XX_DXE_CH_DESC_NUMB_RX_L@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	movq	_WCN36XX_DXE_CH_DESC_NUMB_RX_H@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_WCN36XX_DXE_WQ_TX_L@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 104(%rbx)
	movq	_WCN36XX_DXE_WQ_TX_H@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 76(%rbx)
	movq	_WCN36XX_DXE_CTRL_TX_L_BD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 100(%rbx)
	movq	_WCN36XX_DXE_CTRL_TX_H_BD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%rbx)
	movq	_WCN36XX_DXE_CTRL_TX_L_SKB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 96(%rbx)
	movq	_WCN36XX_DXE_CTRL_TX_H_SKB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%rbx)
	movq	_WCN36XX_DXE_REG_CTL_TX_L@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 92(%rbx)
	movq	_WCN36XX_DXE_REG_CTL_TX_H@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
	movq	_WCN36XX_DXE_CH_DEFAULT_CTL_TX_L@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 88(%rbx)
	movq	_WCN36XX_DXE_CH_DEFAULT_CTL_TX_H@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%rbx)
	callq	_wcn36xx_dxe_allocate_ctl_block
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	leaq	60(%rbx), %rdi
	callq	_wcn36xx_dxe_allocate_ctl_block
	testl	%eax, %eax
	jne	LBB0_6
## %bb.2:
	leaq	32(%rbx), %rdi
	callq	_wcn36xx_dxe_allocate_ctl_block
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	leaq	4(%rbx), %rdi
	callq	_wcn36xx_dxe_allocate_ctl_block
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movl	(%rbx), %edi
	movq	_WCN36XX_SMSM_WLAN_TX_ENABLE@GOTPCREL(%rip), %rax
	movq	_WCN36XX_SMSM_WLAN_TX_RINGS_EMPTY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	(%rax), %esi
	orl	%edx, %esi
	callq	_qcom_smem_state_update_bits
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:
	leaq	L_.str(%rip), %rdi
	callq	_wcn36xx_err
	movq	%rbx, %rdi
	callq	_wcn36xx_dxe_free_ctl_blks
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_WCN36XX_DXE_CH_TX_L,4,2        ## @WCN36XX_DXE_CH_TX_L
	.comm	_WCN36XX_DXE_CH_TX_H,4,2        ## @WCN36XX_DXE_CH_TX_H
	.comm	_WCN36XX_DXE_CH_RX_L,4,2        ## @WCN36XX_DXE_CH_RX_L
	.comm	_WCN36XX_DXE_CH_RX_H,4,2        ## @WCN36XX_DXE_CH_RX_H
	.comm	_WCN36XX_DXE_CH_DESC_NUMB_TX_L,4,2 ## @WCN36XX_DXE_CH_DESC_NUMB_TX_L
	.comm	_WCN36XX_DXE_CH_DESC_NUMB_TX_H,4,2 ## @WCN36XX_DXE_CH_DESC_NUMB_TX_H
	.comm	_WCN36XX_DXE_CH_DESC_NUMB_RX_L,4,2 ## @WCN36XX_DXE_CH_DESC_NUMB_RX_L
	.comm	_WCN36XX_DXE_CH_DESC_NUMB_RX_H,4,2 ## @WCN36XX_DXE_CH_DESC_NUMB_RX_H
	.comm	_WCN36XX_DXE_WQ_TX_L,4,2        ## @WCN36XX_DXE_WQ_TX_L
	.comm	_WCN36XX_DXE_WQ_TX_H,4,2        ## @WCN36XX_DXE_WQ_TX_H
	.comm	_WCN36XX_DXE_CTRL_TX_L_BD,4,2   ## @WCN36XX_DXE_CTRL_TX_L_BD
	.comm	_WCN36XX_DXE_CTRL_TX_H_BD,4,2   ## @WCN36XX_DXE_CTRL_TX_H_BD
	.comm	_WCN36XX_DXE_CTRL_TX_L_SKB,4,2  ## @WCN36XX_DXE_CTRL_TX_L_SKB
	.comm	_WCN36XX_DXE_CTRL_TX_H_SKB,4,2  ## @WCN36XX_DXE_CTRL_TX_H_SKB
	.comm	_WCN36XX_DXE_REG_CTL_TX_L,4,2   ## @WCN36XX_DXE_REG_CTL_TX_L
	.comm	_WCN36XX_DXE_REG_CTL_TX_H,4,2   ## @WCN36XX_DXE_REG_CTL_TX_H
	.comm	_WCN36XX_DXE_CH_DEFAULT_CTL_TX_L,4,2 ## @WCN36XX_DXE_CH_DEFAULT_CTL_TX_L
	.comm	_WCN36XX_DXE_CH_DEFAULT_CTL_TX_H,4,2 ## @WCN36XX_DXE_CH_DEFAULT_CTL_TX_H
	.comm	_WCN36XX_SMSM_WLAN_TX_ENABLE,4,2 ## @WCN36XX_SMSM_WLAN_TX_ENABLE
	.comm	_WCN36XX_SMSM_WLAN_TX_RINGS_EMPTY,4,2 ## @WCN36XX_SMSM_WLAN_TX_RINGS_EMPTY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate DXE control blocks\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wcn36xx_dxe_alloc_ctl_blks     ; -- Begin function wcn36xx_dxe_alloc_ctl_blks
	.p2align	2
_wcn36xx_dxe_alloc_ctl_blks:            ; @wcn36xx_dxe_alloc_ctl_blks
	.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	x19, x0
Lloh0:
	adrp	x8, _WCN36XX_DXE_CH_TX_L@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WCN36XX_DXE_CH_TX_L@GOTPAGEOFF]
Lloh2:
	adrp	x9, _WCN36XX_DXE_CH_TX_H@GOTPAGE
Lloh3:
	ldr	x9, [x9, _WCN36XX_DXE_CH_TX_H@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _WCN36XX_DXE_CH_RX_L@GOTPAGE
Lloh7:
	ldr	x10, [x10, _WCN36XX_DXE_CH_RX_L@GOTPAGEOFF]
Lloh8:
	adrp	x11, _WCN36XX_DXE_CH_RX_H@GOTPAGE
Lloh9:
	ldr	x11, [x11, _WCN36XX_DXE_CH_RX_H@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
Lloh11:
	ldr	w11, [x11]
Lloh12:
	adrp	x12, _WCN36XX_DXE_CH_DESC_NUMB_TX_L@GOTPAGE
Lloh13:
	ldr	x12, [x12, _WCN36XX_DXE_CH_DESC_NUMB_TX_L@GOTPAGEOFF]
Lloh14:
	ldr	w12, [x12]
	stp	w12, w8, [x0, #108]
Lloh15:
	adrp	x8, _WCN36XX_DXE_CH_DESC_NUMB_TX_H@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WCN36XX_DXE_CH_DESC_NUMB_TX_H@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	stp	w8, w9, [x0, #80]
Lloh18:
	adrp	x8, _WCN36XX_DXE_CH_DESC_NUMB_RX_L@GOTPAGE
Lloh19:
	ldr	x8, [x8, _WCN36XX_DXE_CH_DESC_NUMB_RX_L@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _WCN36XX_DXE_CH_DESC_NUMB_RX_H@GOTPAGE
Lloh22:
	ldr	x9, [x9, _WCN36XX_DXE_CH_DESC_NUMB_RX_H@GOTPAGEOFF]
	stp	w8, w10, [x0, #52]
Lloh23:
	ldr	w8, [x9]
	stp	w8, w11, [x0, #24]
Lloh24:
	adrp	x8, _WCN36XX_DXE_WQ_TX_L@GOTPAGE
Lloh25:
	ldr	x8, [x8, _WCN36XX_DXE_WQ_TX_L@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _WCN36XX_DXE_WQ_TX_H@GOTPAGE
Lloh28:
	ldr	x9, [x9, _WCN36XX_DXE_WQ_TX_H@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
Lloh30:
	adrp	x10, _WCN36XX_DXE_CH_DEFAULT_CTL_TX_H@GOTPAGE
Lloh31:
	ldr	x10, [x10, _WCN36XX_DXE_CH_DEFAULT_CTL_TX_H@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
	mov	x20, x0
	str	w10, [x20, #60]!
Lloh33:
	adrp	x10, _WCN36XX_DXE_CTRL_TX_L_BD@GOTPAGE
Lloh34:
	ldr	x10, [x10, _WCN36XX_DXE_CTRL_TX_L_BD@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	stp	w10, w8, [x0, #100]
Lloh36:
	adrp	x8, _WCN36XX_DXE_CTRL_TX_H_BD@GOTPAGE
Lloh37:
	ldr	x8, [x8, _WCN36XX_DXE_CTRL_TX_H_BD@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	stp	w8, w9, [x0, #72]
Lloh39:
	adrp	x8, _WCN36XX_DXE_CTRL_TX_L_SKB@GOTPAGE
Lloh40:
	ldr	x8, [x8, _WCN36XX_DXE_CTRL_TX_L_SKB@GOTPAGEOFF]
Lloh41:
	adrp	x9, _WCN36XX_DXE_CTRL_TX_H_SKB@GOTPAGE
Lloh42:
	ldr	x9, [x9, _WCN36XX_DXE_CTRL_TX_H_SKB@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
Lloh44:
	ldr	w9, [x9]
Lloh45:
	adrp	x10, _WCN36XX_DXE_REG_CTL_TX_L@GOTPAGE
Lloh46:
	ldr	x10, [x10, _WCN36XX_DXE_REG_CTL_TX_L@GOTPAGEOFF]
Lloh47:
	ldr	w10, [x10]
	stp	w10, w8, [x0, #92]
Lloh48:
	adrp	x8, _WCN36XX_DXE_REG_CTL_TX_H@GOTPAGE
Lloh49:
	ldr	x8, [x8, _WCN36XX_DXE_REG_CTL_TX_H@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	stp	w8, w9, [x0, #64]
Lloh51:
	adrp	x8, _WCN36XX_DXE_CH_DEFAULT_CTL_TX_L@GOTPAGE
Lloh52:
	ldr	x8, [x8, _WCN36XX_DXE_CH_DEFAULT_CTL_TX_L@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	str	w8, [x0, #88]!
	bl	_wcn36xx_dxe_allocate_ctl_block
	cbnz	w0, LBB0_5
; %bb.1:
	mov	x0, x20
	bl	_wcn36xx_dxe_allocate_ctl_block
	cbnz	w0, LBB0_5
; %bb.2:
	sub	x0, x20, #28
	bl	_wcn36xx_dxe_allocate_ctl_block
	cbnz	w0, LBB0_5
; %bb.3:
	sub	x0, x20, #56
	bl	_wcn36xx_dxe_allocate_ctl_block
	cbnz	w0, LBB0_5
; %bb.4:
Lloh54:
	adrp	x8, _WCN36XX_SMSM_WLAN_TX_ENABLE@GOTPAGE
Lloh55:
	ldr	x8, [x8, _WCN36XX_SMSM_WLAN_TX_ENABLE@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh56:
	ldr	w8, [x8]
Lloh57:
	adrp	x9, _WCN36XX_SMSM_WLAN_TX_RINGS_EMPTY@GOTPAGE
Lloh58:
	ldr	x9, [x9, _WCN36XX_SMSM_WLAN_TX_RINGS_EMPTY@GOTPAGEOFF]
Lloh59:
	ldr	w2, [x9]
	orr	w1, w2, w8
	bl	_qcom_smem_state_update_bits
	cbz	w0, LBB0_6
LBB0_5:
Lloh60:
	adrp	x0, l_.str@PAGE
Lloh61:
	add	x0, x0, l_.str@PAGEOFF
	bl	_wcn36xx_err
	mov	x0, x19
	bl	_wcn36xx_dxe_free_ctl_blks
Lloh62:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh63:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh64:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh43
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpAdd	Lloh60, Lloh61
	.cfi_endproc
                                        ; -- End function
	.comm	_WCN36XX_DXE_CH_TX_L,4,2        ; @WCN36XX_DXE_CH_TX_L
	.comm	_WCN36XX_DXE_CH_TX_H,4,2        ; @WCN36XX_DXE_CH_TX_H
	.comm	_WCN36XX_DXE_CH_RX_L,4,2        ; @WCN36XX_DXE_CH_RX_L
	.comm	_WCN36XX_DXE_CH_RX_H,4,2        ; @WCN36XX_DXE_CH_RX_H
	.comm	_WCN36XX_DXE_CH_DESC_NUMB_TX_L,4,2 ; @WCN36XX_DXE_CH_DESC_NUMB_TX_L
	.comm	_WCN36XX_DXE_CH_DESC_NUMB_TX_H,4,2 ; @WCN36XX_DXE_CH_DESC_NUMB_TX_H
	.comm	_WCN36XX_DXE_CH_DESC_NUMB_RX_L,4,2 ; @WCN36XX_DXE_CH_DESC_NUMB_RX_L
	.comm	_WCN36XX_DXE_CH_DESC_NUMB_RX_H,4,2 ; @WCN36XX_DXE_CH_DESC_NUMB_RX_H
	.comm	_WCN36XX_DXE_WQ_TX_L,4,2        ; @WCN36XX_DXE_WQ_TX_L
	.comm	_WCN36XX_DXE_WQ_TX_H,4,2        ; @WCN36XX_DXE_WQ_TX_H
	.comm	_WCN36XX_DXE_CTRL_TX_L_BD,4,2   ; @WCN36XX_DXE_CTRL_TX_L_BD
	.comm	_WCN36XX_DXE_CTRL_TX_H_BD,4,2   ; @WCN36XX_DXE_CTRL_TX_H_BD
	.comm	_WCN36XX_DXE_CTRL_TX_L_SKB,4,2  ; @WCN36XX_DXE_CTRL_TX_L_SKB
	.comm	_WCN36XX_DXE_CTRL_TX_H_SKB,4,2  ; @WCN36XX_DXE_CTRL_TX_H_SKB
	.comm	_WCN36XX_DXE_REG_CTL_TX_L,4,2   ; @WCN36XX_DXE_REG_CTL_TX_L
	.comm	_WCN36XX_DXE_REG_CTL_TX_H,4,2   ; @WCN36XX_DXE_REG_CTL_TX_H
	.comm	_WCN36XX_DXE_CH_DEFAULT_CTL_TX_L,4,2 ; @WCN36XX_DXE_CH_DEFAULT_CTL_TX_L
	.comm	_WCN36XX_DXE_CH_DEFAULT_CTL_TX_H,4,2 ; @WCN36XX_DXE_CH_DEFAULT_CTL_TX_H
	.comm	_WCN36XX_SMSM_WLAN_TX_ENABLE,4,2 ; @WCN36XX_SMSM_WLAN_TX_ENABLE
	.comm	_WCN36XX_SMSM_WLAN_TX_RINGS_EMPTY,4,2 ; @WCN36XX_SMSM_WLAN_TX_RINGS_EMPTY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate DXE control blocks\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
