	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_pxa_send_mastercode
_i2c_pxa_send_mastercode:               ## @i2c_pxa_send_mastercode
	.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
	movq	%rdi, %r12
	leaq	12(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irq
	movl	$1, (%r12)
	movl	4(%r12), %r15d
	movq	%r12, %rdi
	callq	__IDBR
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_writel
	movq	%r12, %rdi
	callq	__ICR
	movl	%eax, %edi
	callq	_readl
	movq	_ICR_STOP@GOTPCREL(%rip), %rcx
	movq	_ICR_ALDIE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_ICR_GPIOEN@GOTPCREL(%rip), %rcx
	movq	_ICR_START@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ebx
	orl	(%rcx), %ebx
	notl	%edx
	andl	%eax, %edx
	orl	%edx, %ebx
	movq	_ICR_TB@GOTPCREL(%rip), %rax
	movq	_ICR_ITEIE@GOTPCREL(%rip), %rcx
	orl	(%rax), %ebx
	orl	(%rcx), %ebx
	movq	%r12, %rdi
	callq	__ICR
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_writel
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	xorl	%esi, %esi
	cmpl	$0, (%r12)
	movl	8(%r12), %edi
	sete	%sil
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_wait_event_timeout
	movq	%rax, %rcx
	movl	$0, (%r12)
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_2
## %bb.1:
	movq	_I2C_RETRY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ICR_STOP,4,2                   ## @ICR_STOP
	.comm	_ICR_ALDIE,4,2                  ## @ICR_ALDIE
	.comm	_ICR_GPIOEN,4,2                 ## @ICR_GPIOEN
	.comm	_ICR_START,4,2                  ## @ICR_START
	.comm	_ICR_TB,4,2                     ## @ICR_TB
	.comm	_ICR_ITEIE,4,2                  ## @ICR_ITEIE
	.comm	_HZ,4,2                         ## @HZ
	.comm	_I2C_RETRY,4,2                  ## @I2C_RETRY
	.no_dead_strip	_i2c_pxa_send_mastercode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_pxa_send_mastercode
_i2c_pxa_send_mastercode:               ; @i2c_pxa_send_mastercode
	.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
	mov	x19, x0
	add	x20, x0, #12
	mov	x0, x20
	bl	_spin_lock_irq
	mov	w8, #1
	str	w8, [x19]
	ldr	w21, [x19, #4]
	mov	x0, x19
	bl	__IDBR
	mov	x1, x0
	mov	x0, x21
	bl	_writel
	mov	x0, x19
	bl	__ICR
	bl	_readl
Lloh0:
	adrp	x8, _ICR_STOP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICR_STOP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ICR_ALDIE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ICR_ALDIE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w8, w0, w8
Lloh6:
	adrp	x9, _ICR_GPIOEN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ICR_GPIOEN@GOTPAGEOFF]
Lloh8:
	adrp	x10, _ICR_START@GOTPAGE
Lloh9:
	ldr	x10, [x10, _ICR_START@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh12:
	adrp	x10, _ICR_TB@GOTPAGE
Lloh13:
	ldr	x10, [x10, _ICR_TB@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
Lloh15:
	adrp	x11, _ICR_ITEIE@GOTPAGE
Lloh16:
	ldr	x11, [x11, _ICR_ITEIE@GOTPAGEOFF]
Lloh17:
	ldr	w11, [x11]
	orr	w8, w9, w8
	orr	w8, w8, w10
	orr	w21, w8, w11
	mov	x0, x19
	bl	__ICR
	mov	x1, x0
	mov	x0, x21
	bl	_writel
	mov	x0, x20
	bl	_spin_unlock_irq
	ldr	w0, [x19, #8]
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w1, eq
Lloh18:
	adrp	x8, _HZ@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	bl	_wait_event_timeout
	str	wzr, [x19]
Lloh21:
	adrp	x8, _I2C_RETRY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _I2C_RETRY@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w0, w8, wzr, eq
	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
	ret
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ICR_STOP,4,2                   ; @ICR_STOP
	.comm	_ICR_ALDIE,4,2                  ; @ICR_ALDIE
	.comm	_ICR_GPIOEN,4,2                 ; @ICR_GPIOEN
	.comm	_ICR_START,4,2                  ; @ICR_START
	.comm	_ICR_TB,4,2                     ; @ICR_TB
	.comm	_ICR_ITEIE,4,2                  ; @ICR_ITEIE
	.comm	_HZ,4,2                         ; @HZ
	.comm	_I2C_RETRY,4,2                  ; @I2C_RETRY
	.no_dead_strip	_i2c_pxa_send_mastercode
.subsections_via_symbols
