	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cw1200_setup_mac               ## -- Begin function cw1200_setup_mac
	.p2align	4, 0x90
_cw1200_setup_mac:                      ## @cw1200_setup_mac
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_WSM_RCPI_RSSI_THRESHOLD_ENABLE@GOTPCREL(%rip), %rax
	movq	_WSM_RCPI_RSSI_DONT_USE_UPPER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_WSM_RCPI_RSSI_DONT_USE_LOWER@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	%rdi, %rbx
	movl	%ecx, -24(%rbp)
	movl	$16, -20(%rbp)
	movq	24(%rdi), %rax
	movq	%rax, -32(%rbp)
	movq	_WSM_RCPI_RSSI_USE_RSSI@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	movl	$1, (%rbx)
LBB0_2:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
LBB0_6:
	movl	4(%rax), %ecx
	movl	%ecx, -36(%rbp)
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_wsm_configuration
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_wsm_set_rcpi_rssi_threshold
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_3:
	leaq	8(%rbx), %rdi
	movl	16(%rbx), %esi
	movl	20(%rbx), %edx
	callq	_request_firmware
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r14d
	movl	16(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
LBB0_8:
	movl	%r14d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, %rdi
	callq	_cw1200_parse_sdd_file
	movq	8(%rbx), %rax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_WSM_RCPI_RSSI_THRESHOLD_ENABLE,4,2 ## @WSM_RCPI_RSSI_THRESHOLD_ENABLE
	.comm	_WSM_RCPI_RSSI_DONT_USE_UPPER,4,2 ## @WSM_RCPI_RSSI_DONT_USE_UPPER
	.comm	_WSM_RCPI_RSSI_DONT_USE_LOWER,4,2 ## @WSM_RCPI_RSSI_DONT_USE_LOWER
	.comm	_WSM_RCPI_RSSI_USE_RSSI,4,2     ## @WSM_RCPI_RSSI_USE_RSSI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't load sdd file %s.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cw1200_setup_mac               ; -- Begin function cw1200_setup_mac
	.p2align	2
_cw1200_setup_mac:                      ; @cw1200_setup_mac
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, _WSM_RCPI_RSSI_THRESHOLD_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WSM_RCPI_RSSI_THRESHOLD_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _WSM_RCPI_RSSI_DONT_USE_UPPER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WSM_RCPI_RSSI_DONT_USE_UPPER@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _WSM_RCPI_RSSI_DONT_USE_LOWER@GOTPAGE
Lloh7:
	ldr	x10, [x10, _WSM_RCPI_RSSI_DONT_USE_LOWER@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh8:
	ldr	w9, [x10]
	orr	w8, w8, w9
	mov	w9, #16
	stp	w8, w9, [sp, #24]
	ldr	x9, [x0, #24]
	str	x9, [sp, #16]
Lloh9:
	adrp	x9, _WSM_RCPI_RSSI_USE_RSSI@GOTPAGE
Lloh10:
	ldr	x9, [x9, _WSM_RCPI_RSSI_USE_RSSI@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	w8, #1
	str	w8, [x19]
LBB0_2:
	mov	x0, x19
	ldr	x8, [x0, #8]!
	cbz	x8, LBB0_5
LBB0_3:
	ldr	d0, [x8]
	str	d0, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_wsm_configuration
	mov	x20, x0
	cbnz	w0, LBB0_7
; %bb.4:
	add	x1, sp, #24
	mov	x0, x19
	bl	_wsm_set_rcpi_rssi_threshold
	b	LBB0_7
LBB0_5:
	ldp	w1, w2, [x19, #16]
	bl	_request_firmware
	cbz	w0, LBB0_8
; %bb.6:
	mov	x20, x0
	ldr	w1, [x19, #16]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_8:
	mov	x0, x19
	bl	_cw1200_parse_sdd_file
	ldr	x8, [x19, #8]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_WSM_RCPI_RSSI_THRESHOLD_ENABLE,4,2 ; @WSM_RCPI_RSSI_THRESHOLD_ENABLE
	.comm	_WSM_RCPI_RSSI_DONT_USE_UPPER,4,2 ; @WSM_RCPI_RSSI_DONT_USE_UPPER
	.comm	_WSM_RCPI_RSSI_DONT_USE_LOWER,4,2 ; @WSM_RCPI_RSSI_DONT_USE_LOWER
	.comm	_WSM_RCPI_RSSI_USE_RSSI,4,2     ; @WSM_RCPI_RSSI_USE_RSSI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't load sdd file %s.\n"

.subsections_via_symbols
