	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_bsc_iicbus_reset
_bcm_bsc_iicbus_reset:                  ## @bcm_bsc_iicbus_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	callq	_device_get_softc
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_BCM_BSC_LOCK
	movq	%rbx, %rdi
	callq	_bcm_bsc_reset
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movl	%r14d, %esi
	callq	_IICBUS_GET_FREQUENCY
	movl	%eax, %ecx
	jmp	LBB0_3
LBB0_1:
	movl	$100000, %ecx                   ## imm = 0x186A0
LBB0_3:
	movq	_BCM_BSC_CLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BCM_BSC_CORE_CLK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cltd
	idivl	%ecx
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_BCM_BSC_WRITE
	movq	%rbx, %rdi
	callq	_BCM_BSC_UNLOCK
	movq	_IIC_ENOADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BCM_BSC_CLOCK,4,2              ## @BCM_BSC_CLOCK
	.comm	_BCM_BSC_CORE_CLK,4,2           ## @BCM_BSC_CORE_CLK
	.comm	_IIC_ENOADDR,4,2                ## @IIC_ENOADDR
	.no_dead_strip	_bcm_bsc_iicbus_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_bsc_iicbus_reset
_bcm_bsc_iicbus_reset:                  ; @bcm_bsc_iicbus_reset
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	bl	_device_get_softc
	mov	x19, x0
	bl	_BCM_BSC_LOCK
	mov	x0, x19
	bl	_bcm_bsc_reset
	ldr	x0, [x19]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x1, x20
	bl	_IICBUS_GET_FREQUENCY
	b	LBB0_3
LBB0_2:
	mov	w0, #34464
	movk	w0, #1, lsl #16
LBB0_3:
Lloh0:
	adrp	x8, _BCM_BSC_CLOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BCM_BSC_CLOCK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _BCM_BSC_CORE_CLK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BCM_BSC_CORE_CLK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	sdiv	w2, w8, w0
	mov	x0, x19
	bl	_BCM_BSC_WRITE
	mov	x0, x19
	bl	_BCM_BSC_UNLOCK
Lloh6:
	adrp	x8, _IIC_ENOADDR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IIC_ENOADDR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BCM_BSC_CLOCK,4,2              ; @BCM_BSC_CLOCK
	.comm	_BCM_BSC_CORE_CLK,4,2           ; @BCM_BSC_CORE_CLK
	.comm	_IIC_ENOADDR,4,2                ; @IIC_ENOADDR
	.no_dead_strip	_bcm_bsc_iicbus_reset
.subsections_via_symbols
