	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gpu_i2c_write
_gpu_i2c_write:                         ## @gpu_i2c_write
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %eax
	movq	%rdi, %rbx
	movq	_I2C_MST_DATA@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rdi), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	_I2C_MST_CNTL_CMD_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_I2C_MST_CNTL_BURST_SIZE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %edi
	movq	_I2C_MST_CNTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_gpu_i2c_check_status           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_MST_DATA,8,3               ## @I2C_MST_DATA
	.comm	_I2C_MST_CNTL_CMD_WRITE,4,2     ## @I2C_MST_CNTL_CMD_WRITE
	.comm	_I2C_MST_CNTL_BURST_SIZE_SHIFT,4,2 ## @I2C_MST_CNTL_BURST_SIZE_SHIFT
	.comm	_I2C_MST_CNTL,8,3               ## @I2C_MST_CNTL
	.no_dead_strip	_gpu_i2c_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gpu_i2c_write
_gpu_i2c_write:                         ; @gpu_i2c_write
	.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	x8, x1
	mov	x19, x0
	ldr	x9, [x0]
Lloh0:
	adrp	x10, _I2C_MST_DATA@GOTPAGE
Lloh1:
	ldr	x10, [x10, _I2C_MST_DATA@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	add	x1, x10, x9
	mov	x0, x8
	bl	_writel
Lloh3:
	adrp	x8, _I2C_MST_CNTL_CMD_WRITE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I2C_MST_CNTL_CMD_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _I2C_MST_CNTL_BURST_SIZE_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _I2C_MST_CNTL_BURST_SIZE_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	mov	w10, #1
	lsl	w9, w10, w9
	orr	w0, w9, w8
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _I2C_MST_CNTL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _I2C_MST_CNTL@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_gpu_i2c_check_status
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_MST_DATA,8,3               ; @I2C_MST_DATA
	.comm	_I2C_MST_CNTL_CMD_WRITE,4,2     ; @I2C_MST_CNTL_CMD_WRITE
	.comm	_I2C_MST_CNTL_BURST_SIZE_SHIFT,4,2 ; @I2C_MST_CNTL_BURST_SIZE_SHIFT
	.comm	_I2C_MST_CNTL,8,3               ; @I2C_MST_CNTL
	.no_dead_strip	_gpu_i2c_write
.subsections_via_symbols
