	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fw_enable                      ## -- Begin function fw_enable
	.p2align	4, 0x90
_fw_enable:                             ## @fw_enable
	.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
	movq	_fw_initialized@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_fw_init
LBB0_2:
	movq	_MAX_OHCI@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_9
## %bb.3:
	xorl	%ebx, %ebx
	movq	_FWOHCI_STATE_INIT@GOTPCREL(%rip), %r13
	xorl	%r12d, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_FWOHCI_STATE_DEAD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14,%rbx)
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r12
	movq	_MAX_OHCI@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$24, %rbx
	cmpq	%rax, %r12
	jge	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_fwinfo@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	(%r14,%rbx), %rax
	cmpq	(%r13), %rax
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%r14,%rbx), %r15
	movl	16(%r14,%rbx), %eax
	movq	_CROMSIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%ecx, %eax
	decl	%eax
	negl	%ecx
	andl	%eax, %ecx
	movslq	%ecx, %rax
	movq	%rax, 8(%r14,%rbx)
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_fwohci_init
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_FWOHCI_STATE_ENABLED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14,%rbx)
	movq	%r15, %rdi
	callq	_fw_busreset
	jmp	LBB0_8
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fw_initialized,8,3             ## @fw_initialized
	.comm	_MAX_OHCI,4,2                   ## @MAX_OHCI
	.comm	_fwinfo,8,3                     ## @fwinfo
	.comm	_FWOHCI_STATE_INIT,8,3          ## @FWOHCI_STATE_INIT
	.comm	_CROMSIZE,4,2                   ## @CROMSIZE
	.comm	_FWOHCI_STATE_ENABLED,8,3       ## @FWOHCI_STATE_ENABLED
	.comm	_FWOHCI_STATE_DEAD,8,3          ## @FWOHCI_STATE_DEAD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fw_enable                      ; -- Begin function fw_enable
	.p2align	2
_fw_enable:                             ; @fw_enable
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _fw_initialized@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fw_initialized@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbnz	x8, LBB0_2
; %bb.1:
	bl	_fw_init
LBB0_2:
Lloh3:
	adrp	x20, _MAX_OHCI@GOTPAGE
Lloh4:
	ldr	x20, [x20, _MAX_OHCI@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.3:
	mov	x21, #0
	mov	x22, #0
Lloh5:
	adrp	x23, _fwinfo@GOTPAGE
Lloh6:
	ldr	x23, [x23, _fwinfo@GOTPAGEOFF]
Lloh7:
	adrp	x24, _FWOHCI_STATE_INIT@GOTPAGE
Lloh8:
	ldr	x24, [x24, _FWOHCI_STATE_INIT@GOTPAGEOFF]
Lloh9:
	adrp	x25, _CROMSIZE@GOTPAGE
Lloh10:
	ldr	x25, [x25, _CROMSIZE@GOTPAGEOFF]
Lloh11:
	adrp	x26, _FWOHCI_STATE_ENABLED@GOTPAGE
Lloh12:
	ldr	x26, [x26, _FWOHCI_STATE_ENABLED@GOTPAGEOFF]
Lloh13:
	adrp	x27, _FWOHCI_STATE_DEAD@GOTPAGE
Lloh14:
	ldr	x27, [x27, _FWOHCI_STATE_DEAD@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x27]
	str	x8, [x28, x21]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x20]
	add	x21, x21, #24
	cmp	x22, x8
	b.ge	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x28, [x23]
	add	x19, x28, x21
	ldr	x8, [x19]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x19, #16]
	ldr	w9, [x25]
	add	w8, w9, w8
	sub	w8, w8, #1
	neg	w9, w9
	and	w8, w8, w9
	sxtw	x8, w8
	str	x8, [x19, #8]
	mov	x0, x19
	mov	w1, #0
	bl	_fwohci_init
	cbnz	x0, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x26]
	str	x8, [x28, x21]
	mov	x0, x19
	bl	_fw_busreset
	b	LBB0_5
LBB0_9:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_fw_initialized,8,3             ; @fw_initialized
	.comm	_MAX_OHCI,4,2                   ; @MAX_OHCI
	.comm	_fwinfo,8,3                     ; @fwinfo
	.comm	_FWOHCI_STATE_INIT,8,3          ; @FWOHCI_STATE_INIT
	.comm	_CROMSIZE,4,2                   ; @CROMSIZE
	.comm	_FWOHCI_STATE_ENABLED,8,3       ; @FWOHCI_STATE_ENABLED
	.comm	_FWOHCI_STATE_DEAD,8,3          ; @FWOHCI_STATE_DEAD
.subsections_via_symbols
