	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_write_data_sync
_mwifiex_write_data_sync:               ## @mwifiex_write_data_sync
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r15d
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	movl	(%rdx), %esi
	movl	%esi, %eax
	cltd
	idivl	(%rdi)
	testl	%edx, %edx
	jne	LBB0_2
## %bb.1:
	incl	%esi
	movl	%esi, (%r13)
LBB0_2:
	movl	4(%rdi), %ebx
	movl	%ebx, %edi
	movl	%ecx, %esi
	callq	_usb_sndbulkpipe
	movl	(%r13), %ecx
	leaq	-44(%rbp), %r8
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r12, %rdx
	movl	%r15d, %r9d
	callq	_usb_bulk_msg
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %ecx
	callq	_mwifiex_dbg
	jmp	LBB0_5
LBB0_4:
	movl	-44(%rbp), %eax
	movl	%eax, (%r13)
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"usb_bulk_msg for tx failed: %d\n"

	.no_dead_strip	_mwifiex_write_data_sync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_write_data_sync
_mwifiex_write_data_sync:               ; @mwifiex_write_data_sync
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x4
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x8, [x0]
	ldr	w9, [x2]
	ldr	w10, [x8]
	sdiv	w11, w9, w10
	msub	w10, w11, w10, w9
	cbnz	w10, LBB0_2
; %bb.1:
	add	w9, w9, #1
	str	w9, [x20]
LBB0_2:
	ldr	w23, [x8, #4]
	mov	x0, x23
	mov	x1, x3
	bl	_usb_sndbulkpipe
	mov	x1, x0
	ldr	w3, [x20]
	add	x4, sp, #12
	mov	x0, x23
	mov	x2, x22
	mov	x5, x21
	bl	_usb_bulk_msg
	mov	x21, x0
	cbz	w0, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x21
	bl	_mwifiex_dbg
	b	LBB0_5
LBB0_4:
	ldr	w8, [sp, #12]
	str	w8, [x20]
LBB0_5:
	mov	x0, x21
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"usb_bulk_msg for tx failed: %d\n"

	.no_dead_strip	_mwifiex_write_data_sync
.subsections_via_symbols
