	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amd756_access_channel
_amd756_access_channel:                 ## @amd756_access_channel
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r13
	cmpl	$76, %esi
	je	LBB0_4
## %bb.1:
	movl	%ebx, %eax
	andb	$-4, %al
	cmpb	$48, %al
	je	LBB0_4
## %bb.2:
	cmpb	$80, %al
	jne	LBB0_3
LBB0_4:
	movl	%edx, %r12d
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	24(%rbp), %r14
	movq	_amd756_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_last_channels@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	je	LBB0_7
## %bb.5:
	movq	%rax, %r14
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	24(%rbp), %rax
	movq	%rax, -64(%rbp)
	movq	_amd756_smbus@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rcx
	movsbl	(%rcx), %ecx
	movq	_I2C_SMBUS_BYTE_DATA@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	leaq	-64(%rbp), %rdx
	movq	%rdx, (%rsp)
	movq	%r13, %rdi
	movl	$24, %esi
	xorl	%edx, %edx
	movl	$1, %r8d
	callq	*(%rax)
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movq	24(%rbp), %rax
	movq	%rax, (%r14)
	movl	-44(%rbp), %r15d                ## 4-byte Reload
LBB0_7:
	movq	16(%rbp), %rdx
	movq	_amd756_smbus@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	movq	%rdx, (%rsp)
	movzwl	%r12w, %edx
	movsbl	-48(%rbp), %ecx                 ## 1-byte Folded Reload
	movq	%r13, %rdi
	movl	%ebx, %esi
	movq	-56(%rbp), %r8                  ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	movl	%r15d, %r9d
	callq	*(%rax)
LBB0_8:
	movl	%eax, %r15d
	movq	_amd756_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
LBB0_9:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_amd756_lock,4,2                ## @amd756_lock
	.comm	_last_channels,8,3              ## @last_channels
	.comm	_amd756_smbus,8,3               ## @amd756_smbus
	.comm	_I2C_SMBUS_WRITE,1,0            ## @I2C_SMBUS_WRITE
	.comm	_I2C_SMBUS_BYTE_DATA,4,2        ## @I2C_SMBUS_BYTE_DATA
	.no_dead_strip	_amd756_access_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amd756_access_channel
_amd756_access_channel:                 ; @amd756_access_channel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x26, x7
	mov	x19, x6
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x25, x0
	cmp	w1, #76
	b.eq	LBB0_3
; %bb.1:
	and	w8, w24, #0xfc
	cmp	w8, #48
	b.eq	LBB0_3
; %bb.2:
	cmp	w8, #80
	b.ne	LBB0_9
LBB0_3:
Lloh0:
	adrp	x0, _amd756_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _amd756_lock@GOTPAGEOFF]
	bl	_mutex_lock
Lloh2:
	adrp	x28, _last_channels@GOTPAGE
Lloh3:
	ldr	x28, [x28, _last_channels@GOTPAGEOFF]
	ldr	x8, [x28]
Lloh4:
	adrp	x9, _amd756_smbus@GOTPAGE
Lloh5:
	ldr	x9, [x9, _amd756_smbus@GOTPAGEOFF]
	cmp	x8, x26
	b.eq	LBB0_6
; %bb.4:
	str	x26, [sp, #8]
	ldr	x8, [x9]
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _I2C_SMBUS_WRITE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _I2C_SMBUS_WRITE@GOTPAGEOFF]
Lloh8:
	ldrsb	w3, [x9]
Lloh9:
	adrp	x9, _I2C_SMBUS_BYTE_DATA@GOTPAGE
Lloh10:
	ldr	x9, [x9, _I2C_SMBUS_BYTE_DATA@GOTPAGEOFF]
Lloh11:
	ldr	w5, [x9]
	add	x6, sp, #8
	mov	x0, x25
	mov	w1, #24
	mov	w2, #0
	mov	w4, #1
	blr	x8
	cbnz	w0, LBB0_7
; %bb.5:
	str	x26, [x28]
Lloh12:
	adrp	x9, _amd756_smbus@GOTPAGE
Lloh13:
	ldr	x9, [x9, _amd756_smbus@GOTPAGEOFF]
LBB0_6:
	ldr	x8, [x9]
	ldr	x8, [x8]
	mov	x0, x25
	mov	x1, x24
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	mov	x5, x20
	mov	x6, x19
	blr	x8
LBB0_7:
	mov	x27, x0
Lloh14:
	adrp	x0, _amd756_lock@GOTPAGE
Lloh15:
	ldr	x0, [x0, _amd756_lock@GOTPAGEOFF]
	bl	_mutex_unlock
LBB0_8:
	mov	x0, x27
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_9:
Lloh16:
	adrp	x8, _ENXIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w27, w8
	b	LBB0_8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_amd756_lock,4,2                ; @amd756_lock
	.comm	_last_channels,8,3              ; @last_channels
	.comm	_amd756_smbus,8,3               ; @amd756_smbus
	.comm	_I2C_SMBUS_WRITE,1,0            ; @I2C_SMBUS_WRITE
	.comm	_I2C_SMBUS_BYTE_DATA,4,2        ; @I2C_SMBUS_BYTE_DATA
	.no_dead_strip	_amd756_access_channel
.subsections_via_symbols
