	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_usb_ctl_complete
_brcmf_usb_ctl_complete:                ## @brcmf_usb_ctl_complete
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_USB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_brcmf_dbg
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
## %bb.11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_BRCMF_USB_CBCTL_READ@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_5
## %bb.2:
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.4:
	leaq	16(%rbx), %rax
	jmp	LBB0_9
LBB0_5:
	movq	_BRCMF_USB_CBCTL_WRITE@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_10
## %bb.6:
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.8:
	leaq	8(%rbx), %rax
	jmp	LBB0_9
LBB0_3:
	leaq	20(%rbx), %rax
	jmp	LBB0_9
LBB0_7:
	leaq	12(%rbx), %rax
LBB0_9:
	incl	(%rax)
LBB0_10:
	movl	%r14d, (%rbx)
	movl	$1, 4(%rbx)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_brcmf_usb_ioctl_resp_wake      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_USB,4,2                        ## @USB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enter, status=%d\n"

	.comm	_BRCMF_USB_CBCTL_READ,4,2       ## @BRCMF_USB_CBCTL_READ
	.comm	_BRCMF_USB_CBCTL_WRITE,4,2      ## @BRCMF_USB_CBCTL_WRITE
	.no_dead_strip	_brcmf_usb_ctl_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_usb_ctl_complete
_brcmf_usb_ctl_complete:                ; @brcmf_usb_ctl_complete
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _USB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcmf_dbg
	cmp	x19, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh5:
	adrp	x8, _BRCMF_USB_CBCTL_READ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BRCMF_USB_CBCTL_READ@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_4
; %bb.3:
	add	x8, x19, #16
	add	x9, x19, #20
	b	LBB0_6
LBB0_4:
Lloh8:
	adrp	x8, _BRCMF_USB_CBCTL_WRITE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BRCMF_USB_CBCTL_WRITE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_7
; %bb.5:
	add	x8, x19, #8
	add	x9, x19, #12
LBB0_6:
	cmp	w20, #0
	csel	x8, x8, x9, ne
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_7:
	mov	w8, #1
	stp	w20, w8, [x19]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_brcmf_usb_ioctl_resp_wake
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_USB,4,2                        ; @USB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enter, status=%d\n"

	.comm	_BRCMF_USB_CBCTL_READ,4,2       ; @BRCMF_USB_CBCTL_READ
	.comm	_BRCMF_USB_CBCTL_WRITE,4,2      ; @BRCMF_USB_CBCTL_WRITE
	.no_dead_strip	_brcmf_usb_ctl_complete
.subsections_via_symbols
