	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function wl12xx_spi_init
LCPI0_0:
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_wl12xx_spi_init:                       ## @wl12xx_spi_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movl	(%rax), %edi
	callq	_to_spi_device
	movq	%rax, %r14
	movq	_WSPI_INIT_CMD_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	leaq	-56(%rbp), %rdi
	movq	%rdi, %r14
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	leaq	-80(%rbp), %r12
	movq	%r12, %rdi
	callq	_spi_message_init
	movabsq	$1095216660735, %rax            ## imm = 0xFF000000FF
	movq	%rax, (%rbx)
	movq	_WSPI_INIT_CMD_START@GOTPCREL(%rip), %rax
	movq	_WSPI_INIT_CMD_TX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 8(%rbx)
	movq	$0, 12(%rbx)
	movq	_HW_ACCESS_WSPI_INIT_CMD_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$3, %eax
	movq	_HW_ACCESS_WSPI_FIXED_BUSY_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_WSPI_INIT_CMD_FIXEDBUSY_LEN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%ecx, %edx
	orl	%eax, %edx
	movl	%edx, 20(%rbx)
	movq	_WSPI_INIT_CMD_IOD@GOTPCREL(%rip), %rdx
	movq	_WSPI_INIT_CMD_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rdx), %eax
	leaq	4(%rbx), %r13
	movq	%rbx, %rsi
	movq	_WSPI_INIT_CMD_CS@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	addq	$8, %rsi
	movq	_WSPI_INIT_CMD_WSPI@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movq	_WSPI_INIT_CMD_WS@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	testl	%ecx, %ecx
	jne	LBB0_2
## %bb.3:
	movq	_WSPI_INIT_CMD_DIS_FIXEDBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_5:
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_2:
	movq	_WSPI_INIT_CMD_EN_FIXEDBUSY@GOTPCREL(%rip), %rcx
LBB0_4:
	orl	(%rcx), %eax
	movl	%eax, 24(%rbx)
	movq	_WSPI_INIT_CMD_CRC_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	callq	_crc7_be
	movq	_WSPI_INIT_CMD_END@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 28(%rbx)
	movq	%rbx, %rdi
	callq	___swab32s
	movq	%r13, %rdi
	callq	___swab32s
	movq	%rbx, -56(%rbp)
	movq	_WSPI_INIT_CMD_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_spi_message_add_tail
	movl	(%r15), %edi
	callq	_to_spi_device
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_spi_sync
	movq	_SPI_CS_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	xorl	%eax, (%r13)
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	%r12, %rdi
	callq	_spi_message_init
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [255,255,255,255]
	movups	%xmm0, (%rbx)
	movq	%rbx, %rdi
	callq	___swab32s
	movq	%rbx, -56(%rbp)
	movl	$4, -48(%rbp)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_spi_message_add_tail
	movl	(%r15), %edi
	callq	_to_spi_device
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_spi_sync
	movq	_SPI_CS_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%eax, (%r13)
	movq	%rbx, %rdi
	callq	_kfree
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WSPI_INIT_CMD_LEN,4,2          ## @WSPI_INIT_CMD_LEN
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not allocate cmd for spi init\n"

	.comm	_WSPI_INIT_CMD_START,4,2        ## @WSPI_INIT_CMD_START
	.comm	_WSPI_INIT_CMD_TX,4,2           ## @WSPI_INIT_CMD_TX
	.comm	_HW_ACCESS_WSPI_INIT_CMD_MASK,4,2 ## @HW_ACCESS_WSPI_INIT_CMD_MASK
	.comm	_HW_ACCESS_WSPI_FIXED_BUSY_LEN,4,2 ## @HW_ACCESS_WSPI_FIXED_BUSY_LEN
	.comm	_WSPI_INIT_CMD_FIXEDBUSY_LEN,4,2 ## @WSPI_INIT_CMD_FIXEDBUSY_LEN
	.comm	_WSPI_INIT_CMD_IOD,4,2          ## @WSPI_INIT_CMD_IOD
	.comm	_WSPI_INIT_CMD_IP,4,2           ## @WSPI_INIT_CMD_IP
	.comm	_WSPI_INIT_CMD_CS,4,2           ## @WSPI_INIT_CMD_CS
	.comm	_WSPI_INIT_CMD_WSPI,4,2         ## @WSPI_INIT_CMD_WSPI
	.comm	_WSPI_INIT_CMD_WS,4,2           ## @WSPI_INIT_CMD_WS
	.comm	_WSPI_INIT_CMD_DIS_FIXEDBUSY,4,2 ## @WSPI_INIT_CMD_DIS_FIXEDBUSY
	.comm	_WSPI_INIT_CMD_EN_FIXEDBUSY,4,2 ## @WSPI_INIT_CMD_EN_FIXEDBUSY
	.comm	_WSPI_INIT_CMD_CRC_LEN,4,2      ## @WSPI_INIT_CMD_CRC_LEN
	.comm	_WSPI_INIT_CMD_END,4,2          ## @WSPI_INIT_CMD_END
	.comm	_SPI_CS_HIGH,4,2                ## @SPI_CS_HIGH
	.no_dead_strip	_wl12xx_spi_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl12xx_spi_init
_wl12xx_spi_init:                       ; @wl12xx_spi_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x0
	ldr	w0, [x0]
	bl	_dev_get_drvdata
	mov	x20, x0
	ldr	w0, [x0]
	bl	_to_spi_device
	mov	x19, x0
Lloh0:
	adrp	x23, _WSPI_INIT_CMD_LEN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _WSPI_INIT_CMD_LEN@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x0
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	mov	x0, sp
	bl	_spi_message_init
	add	x22, x21, #4
	movi	d0, #0x0000ff000000ff
Lloh5:
	adrp	x8, _WSPI_INIT_CMD_START@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WSPI_INIT_CMD_START@GOTPAGEOFF]
	str	d0, [x21]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _WSPI_INIT_CMD_TX@GOTPAGE
Lloh9:
	ldr	x9, [x9, _WSPI_INIT_CMD_TX@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
	mov	x1, x21
	str	w8, [x1, #8]!
Lloh11:
	adrp	x8, _HW_ACCESS_WSPI_INIT_CMD_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HW_ACCESS_WSPI_INIT_CMD_MASK@GOTPAGEOFF]
	stp	wzr, wzr, [x21, #12]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _HW_ACCESS_WSPI_FIXED_BUSY_LEN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _HW_ACCESS_WSPI_FIXED_BUSY_LEN@GOTPAGEOFF]
Lloh16:
	adrp	x10, _WSPI_INIT_CMD_FIXEDBUSY_LEN@GOTPAGE
Lloh17:
	ldr	x10, [x10, _WSPI_INIT_CMD_FIXEDBUSY_LEN@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
Lloh19:
	ldr	w10, [x10]
	and	w10, w10, w9
	orr	w8, w10, w8, lsl #3
Lloh20:
	adrp	x10, _WSPI_INIT_CMD_IOD@GOTPAGE
Lloh21:
	ldr	x10, [x10, _WSPI_INIT_CMD_IOD@GOTPAGEOFF]
	str	w8, [x21, #20]
Lloh22:
	ldr	w8, [x10]
Lloh23:
	adrp	x10, _WSPI_INIT_CMD_IP@GOTPAGE
Lloh24:
	ldr	x10, [x10, _WSPI_INIT_CMD_IP@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	orr	w8, w10, w8
Lloh26:
	adrp	x10, _WSPI_INIT_CMD_CS@GOTPAGE
Lloh27:
	ldr	x10, [x10, _WSPI_INIT_CMD_CS@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	orr	w8, w8, w10
Lloh29:
	adrp	x10, _WSPI_INIT_CMD_WSPI@GOTPAGE
Lloh30:
	ldr	x10, [x10, _WSPI_INIT_CMD_WSPI@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
	orr	w8, w8, w10
Lloh32:
	adrp	x10, _WSPI_INIT_CMD_WS@GOTPAGE
Lloh33:
	ldr	x10, [x10, _WSPI_INIT_CMD_WS@GOTPAGEOFF]
Lloh34:
	ldr	w10, [x10]
	orr	w8, w8, w10
Lloh35:
	adrp	x10, _WSPI_INIT_CMD_DIS_FIXEDBUSY@GOTPAGE
Lloh36:
	ldr	x10, [x10, _WSPI_INIT_CMD_DIS_FIXEDBUSY@GOTPAGEOFF]
Lloh37:
	adrp	x11, _WSPI_INIT_CMD_EN_FIXEDBUSY@GOTPAGE
Lloh38:
	ldr	x11, [x11, _WSPI_INIT_CMD_EN_FIXEDBUSY@GOTPAGEOFF]
	cmp	w9, #0
	csel	x9, x10, x11, eq
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x21, #24]
Lloh39:
	adrp	x8, _WSPI_INIT_CMD_CRC_LEN@GOTPAGE
Lloh40:
	ldr	x8, [x8, _WSPI_INIT_CMD_CRC_LEN@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
	mov	w0, #0
	bl	_crc7_be
Lloh42:
	adrp	x8, _WSPI_INIT_CMD_END@GOTPAGE
Lloh43:
	ldr	x8, [x8, _WSPI_INIT_CMD_END@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	orr	w8, w8, w0
	str	w8, [x21, #28]
	mov	x0, x21
	bl	___swab32s
	mov	x0, x22
	bl	___swab32s
	str	x21, [sp, #16]
	ldr	w8, [x23]
	str	w8, [sp, #24]
	add	x0, sp, #16
	mov	x1, sp
	bl	_spi_message_add_tail
	ldr	w0, [x20]
	bl	_to_spi_device
	mov	x1, sp
	bl	_spi_sync
Lloh45:
	adrp	x22, _SPI_CS_HIGH@GOTPAGE
Lloh46:
	ldr	x22, [x22, _SPI_CS_HIGH@GOTPAGEOFF]
	ldr	w8, [x22]
	ldr	w9, [x19]
	eor	w8, w9, w8
	str	w8, [x19]
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	mov	x0, sp
	bl	_spi_message_init
	movi.2d	v0, #0x0000ff000000ff
	str	q0, [x21]
	mov	x0, x21
	bl	___swab32s
	str	x21, [sp, #16]
	mov	w8, #4
	str	w8, [sp, #24]
	add	x0, sp, #16
	mov	x1, sp
	bl	_spi_message_add_tail
	ldr	w0, [x20]
	bl	_to_spi_device
	mov	x1, sp
	bl	_spi_sync
	ldr	w8, [x22]
	ldr	w9, [x19]
	eor	w8, w9, w8
	str	w8, [x19]
	mov	x0, x21
	bl	_kfree
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_2:
	ldr	w0, [x22]
Lloh47:
	adrp	x1, l_.str@PAGE
Lloh48:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_dev_err
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_WSPI_INIT_CMD_LEN,4,2          ; @WSPI_INIT_CMD_LEN
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not allocate cmd for spi init\n"

	.comm	_WSPI_INIT_CMD_START,4,2        ; @WSPI_INIT_CMD_START
	.comm	_WSPI_INIT_CMD_TX,4,2           ; @WSPI_INIT_CMD_TX
	.comm	_HW_ACCESS_WSPI_INIT_CMD_MASK,4,2 ; @HW_ACCESS_WSPI_INIT_CMD_MASK
	.comm	_HW_ACCESS_WSPI_FIXED_BUSY_LEN,4,2 ; @HW_ACCESS_WSPI_FIXED_BUSY_LEN
	.comm	_WSPI_INIT_CMD_FIXEDBUSY_LEN,4,2 ; @WSPI_INIT_CMD_FIXEDBUSY_LEN
	.comm	_WSPI_INIT_CMD_IOD,4,2          ; @WSPI_INIT_CMD_IOD
	.comm	_WSPI_INIT_CMD_IP,4,2           ; @WSPI_INIT_CMD_IP
	.comm	_WSPI_INIT_CMD_CS,4,2           ; @WSPI_INIT_CMD_CS
	.comm	_WSPI_INIT_CMD_WSPI,4,2         ; @WSPI_INIT_CMD_WSPI
	.comm	_WSPI_INIT_CMD_WS,4,2           ; @WSPI_INIT_CMD_WS
	.comm	_WSPI_INIT_CMD_DIS_FIXEDBUSY,4,2 ; @WSPI_INIT_CMD_DIS_FIXEDBUSY
	.comm	_WSPI_INIT_CMD_EN_FIXEDBUSY,4,2 ; @WSPI_INIT_CMD_EN_FIXEDBUSY
	.comm	_WSPI_INIT_CMD_CRC_LEN,4,2      ; @WSPI_INIT_CMD_CRC_LEN
	.comm	_WSPI_INIT_CMD_END,4,2          ; @WSPI_INIT_CMD_END
	.comm	_SPI_CS_HIGH,4,2                ; @SPI_CS_HIGH
	.no_dead_strip	_wl12xx_spi_init
.subsections_via_symbols
