	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_i2c_pump_msg
_dw_i2c_pump_msg:                       ## @dw_i2c_pump_msg
	.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
	movq	%rdi, %r14
	leaq	16(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_i2c_dw_read
	movq	%rbx, %rdi
	callq	_i2c_dw_xfer_msg
	movq	_DW_IC_INTR_STOP_DET@GOTPCREL(%rip), %rax
	movq	_DW_IC_INTR_TX_ABRT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_STATUS_WRITE_IN_PROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r14), %eax
	je	LBB0_2
## %bb.1:
	movq	_DW_IC_INTR_TX_EMPTY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	orl	%eax, %edi
	movq	_DW_IC_INTR_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_writew                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DW_IC_INTR_STOP_DET,4,2        ## @DW_IC_INTR_STOP_DET
	.comm	_DW_IC_INTR_TX_ABRT,4,2         ## @DW_IC_INTR_TX_ABRT
	.comm	_STATUS_WRITE_IN_PROGRESS,4,2   ## @STATUS_WRITE_IN_PROGRESS
	.comm	_DW_IC_INTR_TX_EMPTY,4,2        ## @DW_IC_INTR_TX_EMPTY
	.comm	_DW_IC_INTR_MASK,8,3            ## @DW_IC_INTR_MASK
	.no_dead_strip	_dw_i2c_pump_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_i2c_pump_msg
_dw_i2c_pump_msg:                       ; @dw_i2c_pump_msg
	.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	x19, x0
	add	x20, x0, #16
	mov	x0, x20
	bl	_i2c_dw_read
	mov	x0, x20
	bl	_i2c_dw_xfer_msg
Lloh0:
	adrp	x8, _DW_IC_INTR_STOP_DET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DW_IC_INTR_STOP_DET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DW_IC_INTR_TX_ABRT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DW_IC_INTR_TX_ABRT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19]
Lloh6:
	adrp	x10, _STATUS_WRITE_IN_PROGRESS@GOTPAGE
Lloh7:
	ldr	x10, [x10, _STATUS_WRITE_IN_PROGRESS@GOTPAGEOFF]
Lloh8:
	adrp	x11, _DW_IC_INTR_TX_EMPTY@GOTPAGE
Lloh9:
	ldr	x11, [x11, _DW_IC_INTR_TX_EMPTY@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
Lloh11:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w9, wzr, w11, eq
	orr	w0, w8, w9
	ldr	x8, [x19, #8]
Lloh12:
	adrp	x9, _DW_IC_INTR_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DW_IC_INTR_MASK@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x1, x9, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_writew
	.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	_DW_IC_INTR_STOP_DET,4,2        ; @DW_IC_INTR_STOP_DET
	.comm	_DW_IC_INTR_TX_ABRT,4,2         ; @DW_IC_INTR_TX_ABRT
	.comm	_STATUS_WRITE_IN_PROGRESS,4,2   ; @STATUS_WRITE_IN_PROGRESS
	.comm	_DW_IC_INTR_TX_EMPTY,4,2        ; @DW_IC_INTR_TX_EMPTY
	.comm	_DW_IC_INTR_MASK,8,3            ; @DW_IC_INTR_MASK
	.no_dead_strip	_dw_i2c_pump_msg
.subsections_via_symbols
