	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl1251_hw_init                 ## -- Begin function wl1251_hw_init
	.p2align	4, 0x90
_wl1251_hw_init:                        ## @wl1251_hw_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_wl1251_hw_init_hwenc_config
	testl	%eax, %eax
	js	LBB0_16
## %bb.1:
	movq	%r14, %rdi
	callq	_wl1251_hw_init_templates_config
	testl	%eax, %eax
	js	LBB0_16
## %bb.2:
	movq	%r14, %rdi
	callq	_wl1251_hw_init_mem_config
	testl	%eax, %eax
	js	LBB0_16
## %bb.3:
	movq	%r14, %rdi
	callq	_wl1251_hw_init_data_path_config
	testl	%eax, %eax
	js	LBB0_20
## %bb.4:
	movq	_RX_CFG_PROMISCUOUS@GOTPCREL(%rip), %rax
	movq	_RX_CFG_TSF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_RX_FILTER_OPTION_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_wl1251_hw_init_rx_config
	testl	%eax, %eax
	js	LBB0_18
## %bb.5:
	movq	%r14, %rdi
	callq	_wl1251_hw_init_tx_queue_config
	testl	%eax, %eax
	js	LBB0_18
## %bb.6:
	movq	%r14, %rdi
	callq	_wl1251_hw_init_phy_config
	testl	%eax, %eax
	js	LBB0_18
## %bb.7:
	movq	%r14, %rdi
	callq	_wl1251_acx_conn_monit_params
	testl	%eax, %eax
	js	LBB0_18
## %bb.8:
	movq	%r14, %rdi
	callq	_wl1251_hw_init_beacon_filter
	testl	%eax, %eax
	js	LBB0_18
## %bb.9:
	movq	%r14, %rdi
	callq	_wl1251_hw_init_pta
	testl	%eax, %eax
	js	LBB0_18
## %bb.10:
	movq	%r14, %rdi
	callq	_wl1251_hw_init_energy_detection
	testl	%eax, %eax
	js	LBB0_18
## %bb.11:
	movq	%r14, %rdi
	callq	_wl1251_hw_init_beacon_broadcast
	testl	%eax, %eax
	js	LBB0_18
## %bb.12:
	movl	16(%r14), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_wl1251_cmd_data_path_rx
	testl	%eax, %eax
	js	LBB0_18
## %bb.13:
	movl	16(%r14), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_wl1251_cmd_data_path_tx
	testl	%eax, %eax
	js	LBB0_18
## %bb.14:
	movq	%r14, %rdi
	callq	_wl1251_hw_init_power_auth
	testl	%eax, %eax
	js	LBB0_18
## %bb.15:
	movq	(%r14), %rax
	movq	8(%r14), %rdx
	movl	4(%rax), %ecx
	movl	12(%rax), %esi
	movl	(%rdx), %r8d
	movl	8(%rdx), %edx
	leaq	L_.str(%rip), %rdi
	callq	_wl1251_info
	xorl	%ebx, %ebx
	jmp	LBB0_22
LBB0_16:
	movl	%eax, %ebx
	jmp	LBB0_22
LBB0_18:
	movl	%eax, %ebx
	movq	8(%r14), %rdi
	callq	_kfree
	jmp	LBB0_21
LBB0_20:
	movl	%eax, %ebx
LBB0_21:
	movq	(%r14), %rdi
	callq	_kfree
LBB0_22:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_CFG_PROMISCUOUS,4,2         ## @RX_CFG_PROMISCUOUS
	.comm	_RX_CFG_TSF,4,2                 ## @RX_CFG_TSF
	.comm	_RX_FILTER_OPTION_DEF,4,2       ## @RX_FILTER_OPTION_DEF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d tx blocks at 0x%x, %d rx blocks at 0x%x"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl1251_hw_init                 ; -- Begin function wl1251_hw_init
	.p2align	2
_wl1251_hw_init:                        ; @wl1251_hw_init
	.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
	bl	_wl1251_hw_init_hwenc_config
	tbnz	w0, #31, LBB0_16
; %bb.1:
	mov	x0, x19
	bl	_wl1251_hw_init_templates_config
	tbnz	w0, #31, LBB0_16
; %bb.2:
	mov	x0, x19
	bl	_wl1251_hw_init_mem_config
	tbnz	w0, #31, LBB0_16
; %bb.3:
	mov	x0, x19
	bl	_wl1251_hw_init_data_path_config
	tbnz	w0, #31, LBB0_18
; %bb.4:
Lloh0:
	adrp	x8, _RX_CFG_PROMISCUOUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RX_CFG_PROMISCUOUS@GOTPAGEOFF]
Lloh2:
	adrp	x9, _RX_CFG_TSF@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RX_CFG_TSF@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh6:
	adrp	x8, _RX_FILTER_OPTION_DEF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RX_FILTER_OPTION_DEF@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_wl1251_hw_init_rx_config
	tbnz	w0, #31, LBB0_17
; %bb.5:
	mov	x0, x19
	bl	_wl1251_hw_init_tx_queue_config
	tbnz	w0, #31, LBB0_17
; %bb.6:
	mov	x0, x19
	bl	_wl1251_hw_init_phy_config
	tbnz	w0, #31, LBB0_17
; %bb.7:
	mov	x0, x19
	bl	_wl1251_acx_conn_monit_params
	tbnz	w0, #31, LBB0_17
; %bb.8:
	mov	x0, x19
	bl	_wl1251_hw_init_beacon_filter
	tbnz	w0, #31, LBB0_17
; %bb.9:
	mov	x0, x19
	bl	_wl1251_hw_init_pta
	tbnz	w0, #31, LBB0_17
; %bb.10:
	mov	x0, x19
	bl	_wl1251_hw_init_energy_detection
	tbnz	w0, #31, LBB0_17
; %bb.11:
	mov	x0, x19
	bl	_wl1251_hw_init_beacon_broadcast
	tbnz	w0, #31, LBB0_17
; %bb.12:
	ldr	w1, [x19, #16]
	mov	x0, x19
	mov	w2, #1
	bl	_wl1251_cmd_data_path_rx
	tbnz	w0, #31, LBB0_17
; %bb.13:
	ldr	w1, [x19, #16]
	mov	x0, x19
	mov	w2, #1
	bl	_wl1251_cmd_data_path_tx
	tbnz	w0, #31, LBB0_17
; %bb.14:
	mov	x0, x19
	bl	_wl1251_hw_init_power_auth
	tbnz	w0, #31, LBB0_17
; %bb.15:
	ldp	x8, x9, [x19]
	ldr	w1, [x8, #12]
	ldr	w2, [x9, #8]
	ldr	w3, [x8, #4]
	ldr	w4, [x9]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_wl1251_info
	mov	w20, #0
	b	LBB0_20
LBB0_16:
	mov	x20, x0
	b	LBB0_20
LBB0_17:
	mov	x20, x0
	ldr	x0, [x19, #8]
	bl	_kfree
	b	LBB0_19
LBB0_18:
	mov	x20, x0
LBB0_19:
	ldr	x0, [x19]
	bl	_kfree
LBB0_20:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_CFG_PROMISCUOUS,4,2         ; @RX_CFG_PROMISCUOUS
	.comm	_RX_CFG_TSF,4,2                 ; @RX_CFG_TSF
	.comm	_RX_FILTER_OPTION_DEF,4,2       ; @RX_FILTER_OPTION_DEF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d tx blocks at 0x%x, %d rx blocks at 0x%x"

.subsections_via_symbols
