	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ohci_update_phy_reg
_ohci_update_phy_reg:                   ## @ohci_update_phy_reg
	.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	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %ebx
	movl	%esi, %r14d
	callq	_fw_ohci
	movq	%rax, %r15
	movq	_OHCI1394_PhyControl@GOTPCREL(%rip), %r12
	movl	(%r12), %r13d
	movl	%r14d, %edi
	callq	_OHCI1394_PhyControl_Read
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_reg_write
	movq	%r15, %rdi
	callq	_flush_writes
	movl	$2, %edi
	callq	_msleep
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_reg_read
	movq	_OHCI1394_PhyControl_ReadDone@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.2:
	movl	%eax, %edi
	callq	_OHCI1394_PhyControl_ReadData
	notl	%ebx
	andl	%eax, %ebx
	orl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	(%r12), %r12d
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_OHCI1394_PhyControl_Write
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_reg_write
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_fw_error
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OHCI1394_PhyControl,4,2        ## @OHCI1394_PhyControl
	.comm	_OHCI1394_PhyControl_ReadDone,4,2 ## @OHCI1394_PhyControl_ReadDone
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to set phy reg bits.\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_ohci_update_phy_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ohci_update_phy_reg
_ohci_update_phy_reg:                   ; @ohci_update_phy_reg
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	bl	_fw_ohci
	mov	x20, x0
Lloh0:
	adrp	x24, _OHCI1394_PhyControl@GOTPAGE
Lloh1:
	ldr	x24, [x24, _OHCI1394_PhyControl@GOTPAGEOFF]
	ldr	w23, [x24]
	mov	x0, x19
	bl	_OHCI1394_PhyControl_Read
	mov	x2, x0
	mov	x0, x20
	mov	x1, x23
	bl	_reg_write
	mov	x0, x20
	bl	_flush_writes
	mov	w0, #2
	bl	_msleep
	ldr	w1, [x24]
	mov	x0, x20
	bl	_reg_read
Lloh2:
	adrp	x8, _OHCI1394_PhyControl_ReadDone@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OHCI1394_PhyControl_ReadDone@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	bl	_OHCI1394_PhyControl_ReadData
	bic	w8, w0, w22
	orr	w1, w8, w21
	ldr	w21, [x24]
	mov	x0, x19
	bl	_OHCI1394_PhyControl_Write
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_reg_write
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fw_error
Lloh7:
	adrp	x8, _EBUSY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_OHCI1394_PhyControl,4,2        ; @OHCI1394_PhyControl
	.comm	_OHCI1394_PhyControl_ReadDone,4,2 ; @OHCI1394_PhyControl_ReadDone
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to set phy reg bits.\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_ohci_update_phy_reg
.subsections_via_symbols
