	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipath_tempsense_internal_write
_ipath_tempsense_internal_write:        ## @ipath_tempsense_internal_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	%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
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	callq	_ipath_i2c_type
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %r13
	movl	(%rax), %esi
	movq	_IPATH_NO_DEV@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	je	LBB0_10
## %bb.2:
	movq	_WRITE_CMD@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r12, %rdi
	callq	_i2c_startcmd
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_ipath_dbg
	movq	%r12, %rdi
	callq	_stop_cmd
	jmp	LBB0_10
LBB0_4:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_wr_byte
	movq	%r12, %rdi
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	callq	_stop_cmd
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_9
LBB0_6:
	movl	%r15d, %esi
	callq	_wr_byte
	movq	%r12, %rdi
	callq	_stop_cmd
	movq	_READ_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%r13), %esi
	movq	%r12, %rdi
	callq	_i2c_startcmd
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
LBB0_9:
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_ipath_dev_err
LBB0_10:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_IPATH_NO_DEV,4,2               ## @IPATH_NO_DEV
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_WRITE_CMD,4,2                  ## @WRITE_CMD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed tempsense startcmd\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to write tempsense command %02X\n"

	.comm	_READ_CMD,4,2                   ## @READ_CMD
L_.str.2:                               ## @.str.2
	.asciz	"Failed tempsense data wrt to %02X\n"

	.no_dead_strip	_ipath_tempsense_internal_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipath_tempsense_internal_write
_ipath_tempsense_internal_write:        ; @ipath_tempsense_internal_write
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ENOENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	bl	_ipath_i2c_type
	cbz	x0, LBB0_4
; %bb.1:
	mov	x22, x0
	ldr	w8, [x0]
Lloh3:
	adrp	x9, _IPATH_NO_DEV@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IPATH_NO_DEV@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_10
; %bb.2:
Lloh6:
	adrp	x9, _WRITE_CMD@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WRITE_CMD@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_i2c_startcmd
	cbz	w0, LBB0_5
; %bb.3:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ipath_dbg
	mov	x0, x19
	bl	_stop_cmd
	b	LBB0_10
LBB0_4:
	neg	w0, w23
	b	LBB0_11
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_wr_byte
	cbz	w0, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_stop_cmd
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	mov	x1, x21
	bl	_wr_byte
	mov	x0, x19
	bl	_stop_cmd
	ldr	w8, [x22]
Lloh13:
	adrp	x9, _READ_CMD@GOTPAGE
Lloh14:
	ldr	x9, [x9, _READ_CMD@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_i2c_startcmd
	cbz	w0, LBB0_11
; %bb.8:
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_9:
	mov	x0, x19
	mov	x2, x20
	bl	_ipath_dev_err
LBB0_10:
Lloh18:
	adrp	x8, _ENXIO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_IPATH_NO_DEV,4,2               ; @IPATH_NO_DEV
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_WRITE_CMD,4,2                  ; @WRITE_CMD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed tempsense startcmd\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to write tempsense command %02X\n"

	.comm	_READ_CMD,4,2                   ; @READ_CMD
l_.str.2:                               ; @.str.2
	.asciz	"Failed tempsense data wrt to %02X\n"

	.no_dead_strip	_ipath_tempsense_internal_write
.subsections_via_symbols
