	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl12xx_spi_reset
_wl12xx_spi_reset:                      ## @wl12xx_spi_reset
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %r14
	movq	_WSPI_INIT_CMD_LEN@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	callq	_spi_message_init
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movl	$255, %esi
	callq	_memset
	movq	%rbx, -56(%rbp)
	movl	(%r13), %eax
	movl	%eax, -64(%rbp)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_spi_message_add_tail
	movl	(%r14), %edi
	callq	_to_spi_device
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_spi_sync
	movq	%rbx, %rdi
	callq	_kfree
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.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 reset\n"

	.no_dead_strip	_wl12xx_spi_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl12xx_spi_reset
_wl12xx_spi_reset:                      ; @wl12xx_spi_reset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x0
	ldr	w0, [x0]
	bl	_dev_get_drvdata
	mov	x20, x0
Lloh0:
	adrp	x22, _WSPI_INIT_CMD_LEN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _WSPI_INIT_CMD_LEN@GOTPAGEOFF]
	ldr	w0, [x22]
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	x19, x0
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	add	x0, sp, #8
	bl	_spi_message_init
	ldr	w2, [x22]
	mov	x0, x19
	mov	w1, #255
	bl	_memset
	str	x19, [sp, #24]
	ldr	w8, [x22]
	str	w8, [sp, #16]
	add	x0, sp, #16
	add	x1, sp, #8
	bl	_spi_message_add_tail
	ldr	w0, [x20]
	bl	_to_spi_device
	add	x1, sp, #8
	bl	_spi_sync
	mov	x0, x19
	bl	_kfree
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_2:
	ldr	w0, [x21]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_dev_err
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.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 reset\n"

	.no_dead_strip	_wl12xx_spi_reset
.subsections_via_symbols
