	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_usb_state_change
_brcmf_usb_state_change:                ## @brcmf_usb_state_change
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movq	_USB@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_brcmf_dbg
	cmpl	%r15d, (%rbx)
	jne	LBB0_1
## %bb.7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%r15d, (%rbx)
	movq	_BRCMFMAC_USB_STATE_DOWN@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_3
## %bb.2:
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movq	_BRCMF_BUS_DOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_BRCMFMAC_USB_STATE_UP@GOTPCREL(%rip), %rax
	movl	(%r12), %edi
	cmpl	%r15d, (%rax)
	jne	LBB0_6
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movq	_BRCMF_BUS_UP@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_brcmf_bus_change_state         ## TAILCALL
LBB0_6:
	leaq	L_.str.3(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_brcmf_dbg                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_USB,4,2                        ## @USB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enter, current state=%d, new state=%d\n"

	.comm	_BRCMFMAC_USB_STATE_DOWN,4,2    ## @BRCMFMAC_USB_STATE_DOWN
L_.str.1:                               ## @.str.1
	.asciz	"DBUS is down\n"

	.comm	_BRCMF_BUS_DOWN,4,2             ## @BRCMF_BUS_DOWN
	.comm	_BRCMFMAC_USB_STATE_UP,4,2      ## @BRCMFMAC_USB_STATE_UP
L_.str.2:                               ## @.str.2
	.asciz	"DBUS is up\n"

	.comm	_BRCMF_BUS_UP,4,2               ## @BRCMF_BUS_UP
L_.str.3:                               ## @.str.3
	.asciz	"DBUS current state=%d\n"

	.no_dead_strip	_brcmf_usb_state_change
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_usb_state_change
_brcmf_usb_state_change:                ; @brcmf_usb_state_change
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x21, x0
	ldr	x19, [x0, #8]
Lloh0:
	adrp	x22, _USB@GOTPAGE
Lloh1:
	ldr	x22, [x22, _USB@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	w8, [x21]
	stp	x8, x20, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcmf_dbg
	ldr	w8, [x21]
	cmp	w8, w20
	b.eq	LBB0_7
; %bb.1:
	str	w20, [x21]
Lloh4:
	adrp	x8, _BRCMFMAC_USB_STATE_DOWN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BRCMFMAC_USB_STATE_DOWN@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [x22]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_brcmf_dbg
Lloh9:
	adrp	x8, _BRCMF_BUS_DOWN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BRCMF_BUS_DOWN@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh11:
	adrp	x8, _BRCMFMAC_USB_STATE_UP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BRCMFMAC_USB_STATE_UP@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w0, [x22]
	cmp	w8, w20
	b.ne	LBB0_6
; %bb.4:
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_brcmf_dbg
Lloh16:
	adrp	x8, _BRCMF_BUS_UP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BRCMF_BUS_UP@GOTPAGEOFF]
LBB0_5:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_brcmf_bus_change_state
LBB0_6:
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	str	x20, [sp]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_brcmf_dbg
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_USB,4,2                        ; @USB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enter, current state=%d, new state=%d\n"

	.comm	_BRCMFMAC_USB_STATE_DOWN,4,2    ; @BRCMFMAC_USB_STATE_DOWN
l_.str.1:                               ; @.str.1
	.asciz	"DBUS is down\n"

	.comm	_BRCMF_BUS_DOWN,4,2             ; @BRCMF_BUS_DOWN
	.comm	_BRCMFMAC_USB_STATE_UP,4,2      ; @BRCMFMAC_USB_STATE_UP
l_.str.2:                               ; @.str.2
	.asciz	"DBUS is up\n"

	.comm	_BRCMF_BUS_UP,4,2               ; @BRCMF_BUS_UP
l_.str.3:                               ; @.str.3
	.asciz	"DBUS current state=%d\n"

	.no_dead_strip	_brcmf_usb_state_change
.subsections_via_symbols
