	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_pxa_pio_set_master
_i2c_pxa_pio_set_master:                ## @i2c_pxa_pio_set_master
	.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, %r15
	movq	_DEF_TIMEOUT@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.1:
	addq	%rbx, %rbx
	movq	_ISR_IBB@GOTPCREL(%rip), %r14
	movq	_ISR_UB@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	__ISR
	movl	%eax, %edi
	callq	_readl
	movl	(%r12), %ecx
	orl	(%r14), %ecx
	testl	%eax, %ecx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_udelay
	movq	%r15, %rdi
	callq	_show_state
	decq	%rbx
	jne	LBB0_2
	jmp	LBB0_5
LBB0_4:
	testq	%rbx, %rbx
	jle	LBB0_5
## %bb.6:
	movq	%r15, %rdi
	callq	__ICR
	movl	%eax, %edi
	callq	_readl
	movl	%eax, %r14d
	movq	_ICR_SCLE@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movq	%r15, %rdi
	callq	__ICR
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_writel
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_5:
	movq	%r15, %rdi
	callq	_show_state
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_I2C_RETRY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEF_TIMEOUT,4,2                ## @DEF_TIMEOUT
	.comm	_ISR_IBB,4,2                    ## @ISR_IBB
	.comm	_ISR_UB,4,2                     ## @ISR_UB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i2c_pxa: timeout waiting for bus free\n"

	.comm	_I2C_RETRY,4,2                  ## @I2C_RETRY
	.comm	_ICR_SCLE,4,2                   ## @ICR_SCLE
	.no_dead_strip	_i2c_pxa_pio_set_master
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_pxa_pio_set_master
_i2c_pxa_pio_set_master:                ; @i2c_pxa_pio_set_master
	.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
Lloh0:
	adrp	x8, _DEF_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEF_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	cbz	w8, LBB0_6
; %bb.1:
	lsl	x20, x8, #1
Lloh3:
	adrp	x21, _ISR_IBB@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ISR_IBB@GOTPAGEOFF]
Lloh5:
	adrp	x22, _ISR_UB@GOTPAGE
Lloh6:
	ldr	x22, [x22, _ISR_UB@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	__ISR
	bl	_readl
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w8, w9, w8
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x20, x20, #1
	mov	w0, #1000
	bl	_udelay
	mov	x0, x19
	bl	_show_state
	cbnz	x20, LBB0_2
	b	LBB0_6
LBB0_4:
	cmp	x20, #0
	b.le	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	__ICR
	bl	_readl
Lloh7:
	adrp	x8, _ICR_SCLE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ICR_SCLE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	orr	w20, w8, w0
	mov	x0, x19
	bl	__ICR
	mov	x1, x0
	mov	x0, x20
	bl	_writel
	mov	w0, #0
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_show_state
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh12:
	adrp	x8, _I2C_RETRY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _I2C_RETRY@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
LBB0_7:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DEF_TIMEOUT,4,2                ; @DEF_TIMEOUT
	.comm	_ISR_IBB,4,2                    ; @ISR_IBB
	.comm	_ISR_UB,4,2                     ; @ISR_UB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i2c_pxa: timeout waiting for bus free\n"

	.comm	_I2C_RETRY,4,2                  ; @I2C_RETRY
	.comm	_ICR_SCLE,4,2                   ; @ICR_SCLE
	.no_dead_strip	_i2c_pxa_pio_set_master
.subsections_via_symbols
