	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_au1550_setup
_i2c_au1550_setup:                      ## @i2c_au1550_setup
	.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	(%rdi), %r14
	movq	_PSC_CTRL_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	xorl	%eax, %eax
	callq	_au_sync
	movq	_PSC_SEL_PS_SMBUSMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	movl	$0, (%r14)
	xorl	%eax, %eax
	callq	_au_sync
	movq	_PSC_CTRL_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	xorl	%eax, %eax
	callq	_au_sync
	movq	_PSC_SMBSTAT_SR@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r14), %ebx
	xorl	%eax, %eax
	callq	_au_sync
	testl	%ebx, (%r13)
	je	LBB0_1
## %bb.2:
	movq	_PSC_SMBCFG_RT_FIFO8@GOTPCREL(%rip), %rax
	movq	_PSC_SMBCFG_TT_FIFO8@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_PSC_SMBCFG_DD_DISABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%r14)
	movq	_PSC_SMBCFG_DIV8@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PSC_SMBCFG_SET_DIV
	orl	%eax, (%r14)
	movq	_PSC_SMBMSK_ALLMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	xorl	%eax, %eax
	callq	_au_sync
	xorl	%edi, %edi
	callq	_PSC_SMBTMR_SET_TH
	movl	%eax, %ebx
	movl	$15, %edi
	callq	_PSC_SMBTMR_SET_PS
	movl	%eax, %r15d
	orl	%ebx, %r15d
	movl	$15, %edi
	callq	_PSC_SMBTMR_SET_PU
	movl	%eax, %ebx
	movl	$15, %edi
	callq	_PSC_SMBTMR_SET_SH
	movl	%eax, %r12d
	orl	%ebx, %r12d
	orl	%r15d, %r12d
	movl	$15, %edi
	callq	_PSC_SMBTMR_SET_SU
	movl	%eax, %ebx
	movl	$15, %edi
	callq	_PSC_SMBTMR_SET_CL
	movl	%eax, %r15d
	orl	%ebx, %r15d
	movl	$15, %edi
	callq	_PSC_SMBTMR_SET_CH
	orl	%r15d, %eax
	orl	%r12d, %eax
	movl	%eax, 8(%r14)
	xorl	%eax, %eax
	callq	_au_sync
	movq	_PSC_SMBCFG_DE_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r14), %ebx
	xorl	%eax, %eax
	callq	_au_sync
	testl	%ebx, (%r13)
	je	LBB0_3
## %bb.4:
	movq	_PSC_CTRL_SUSPEND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_au_sync                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PSC_CTRL_DISABLE,4,2           ## @PSC_CTRL_DISABLE
	.comm	_PSC_SEL_PS_SMBUSMODE,4,2       ## @PSC_SEL_PS_SMBUSMODE
	.comm	_PSC_CTRL_ENABLE,4,2            ## @PSC_CTRL_ENABLE
	.comm	_PSC_SMBSTAT_SR,4,2             ## @PSC_SMBSTAT_SR
	.comm	_PSC_SMBCFG_RT_FIFO8,4,2        ## @PSC_SMBCFG_RT_FIFO8
	.comm	_PSC_SMBCFG_TT_FIFO8,4,2        ## @PSC_SMBCFG_TT_FIFO8
	.comm	_PSC_SMBCFG_DD_DISABLE,4,2      ## @PSC_SMBCFG_DD_DISABLE
	.comm	_PSC_SMBCFG_DIV8,4,2            ## @PSC_SMBCFG_DIV8
	.comm	_PSC_SMBMSK_ALLMASK,4,2         ## @PSC_SMBMSK_ALLMASK
	.comm	_PSC_SMBCFG_DE_ENABLE,4,2       ## @PSC_SMBCFG_DE_ENABLE
	.comm	_PSC_CTRL_SUSPEND,4,2           ## @PSC_CTRL_SUSPEND
	.no_dead_strip	_i2c_au1550_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_au1550_setup
_i2c_au1550_setup:                      ; @i2c_au1550_setup
	.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
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _PSC_CTRL_DISABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PSC_CTRL_DISABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20, #12]
	bl	_au_sync
Lloh3:
	adrp	x8, _PSC_SEL_PS_SMBUSMODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PSC_SEL_PS_SMBUSMODE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x20, #20]
	str	wzr, [x20]
	bl	_au_sync
Lloh6:
	adrp	x8, _PSC_CTRL_ENABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PSC_CTRL_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x20, #12]
	bl	_au_sync
Lloh9:
	adrp	x21, _PSC_SMBSTAT_SR@GOTPAGE
Lloh10:
	ldr	x21, [x21, _PSC_SMBSTAT_SR@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w19, [x20, #4]
	bl	_au_sync
	ldr	w8, [x21]
	tst	w8, w19
	b.eq	LBB0_1
; %bb.2:
Lloh11:
	adrp	x8, _PSC_SMBCFG_RT_FIFO8@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PSC_SMBCFG_RT_FIFO8@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _PSC_SMBCFG_TT_FIFO8@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PSC_SMBCFG_TT_FIFO8@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh17:
	adrp	x9, _PSC_SMBCFG_DD_DISABLE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _PSC_SMBCFG_DD_DISABLE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x20]
Lloh20:
	adrp	x8, _PSC_SMBCFG_DIV8@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PSC_SMBCFG_DIV8@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_PSC_SMBCFG_SET_DIV
	ldr	w8, [x20]
	orr	w8, w8, w0
	str	w8, [x20]
Lloh23:
	adrp	x8, _PSC_SMBMSK_ALLMASK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PSC_SMBMSK_ALLMASK@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	bl	_au_sync
	mov	w0, #0
	bl	_PSC_SMBTMR_SET_TH
	mov	x19, x0
	mov	w0, #15
	bl	_PSC_SMBTMR_SET_PS
	orr	w19, w0, w19
	mov	w0, #15
	bl	_PSC_SMBTMR_SET_PU
	orr	w19, w19, w0
	mov	w0, #15
	bl	_PSC_SMBTMR_SET_SH
	orr	w19, w19, w0
	mov	w0, #15
	bl	_PSC_SMBTMR_SET_SU
	orr	w19, w19, w0
	mov	w0, #15
	bl	_PSC_SMBTMR_SET_CL
	orr	w19, w19, w0
	mov	w0, #15
	bl	_PSC_SMBTMR_SET_CH
	orr	w8, w19, w0
	str	w8, [x20, #8]
	bl	_au_sync
Lloh26:
	adrp	x8, _PSC_SMBCFG_DE_ENABLE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PSC_SMBCFG_DE_ENABLE@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w19, [x20, #4]
	bl	_au_sync
	ldr	w8, [x21]
	tst	w8, w19
	b.eq	LBB0_3
; %bb.4:
Lloh29:
	adrp	x8, _PSC_CTRL_SUSPEND@GOTPAGE
Lloh30:
	ldr	x8, [x8, _PSC_CTRL_SUSPEND@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	str	w8, [x20, #12]
	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	_au_sync
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_PSC_CTRL_DISABLE,4,2           ; @PSC_CTRL_DISABLE
	.comm	_PSC_SEL_PS_SMBUSMODE,4,2       ; @PSC_SEL_PS_SMBUSMODE
	.comm	_PSC_CTRL_ENABLE,4,2            ; @PSC_CTRL_ENABLE
	.comm	_PSC_SMBSTAT_SR,4,2             ; @PSC_SMBSTAT_SR
	.comm	_PSC_SMBCFG_RT_FIFO8,4,2        ; @PSC_SMBCFG_RT_FIFO8
	.comm	_PSC_SMBCFG_TT_FIFO8,4,2        ; @PSC_SMBCFG_TT_FIFO8
	.comm	_PSC_SMBCFG_DD_DISABLE,4,2      ; @PSC_SMBCFG_DD_DISABLE
	.comm	_PSC_SMBCFG_DIV8,4,2            ; @PSC_SMBCFG_DIV8
	.comm	_PSC_SMBMSK_ALLMASK,4,2         ; @PSC_SMBMSK_ALLMASK
	.comm	_PSC_SMBCFG_DE_ENABLE,4,2       ; @PSC_SMBCFG_DE_ENABLE
	.comm	_PSC_CTRL_SUSPEND,4,2           ; @PSC_CTRL_SUSPEND
	.no_dead_strip	_i2c_au1550_setup
.subsections_via_symbols
