	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_channel_status
_get_channel_status:                    ## @get_channel_status
	.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
	movq	%rdi, %rbx
	movq	$0, -16(%rbp)
	movq	_DC_I2C_SW_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-16(%rbp), %rdx
	movl	%edi, %esi
	callq	_REG_GET
	movq	-16(%rbp), %rcx
	movq	_DC_I2C_STATUS__DC_I2C_STATUS_USED_BY_SW@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_2
## %bb.1:
	movq	_I2C_CHANNEL_OPERATION_ENGINE_BUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_2:
	movq	(%rbx), %rcx
	testq	%rax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_I2C_CHANNEL_OPERATION_NO_RESPONSE@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_4:
	testq	%rax, 8(%rcx)
	je	LBB0_6
## %bb.5:
	movq	_I2C_CHANNEL_OPERATION_TIMEOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	testq	%rax, 16(%rcx)
	jne	LBB0_7
## %bb.8:
	movq	_I2C_CHANNEL_OPERATION_SUCCEEDED@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_I2C_CHANNEL_OPERATION_FAILED@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DC_I2C_SW_STATUS,4,2           ## @DC_I2C_SW_STATUS
	.comm	_DC_I2C_STATUS__DC_I2C_STATUS_USED_BY_SW,8,3 ## @DC_I2C_STATUS__DC_I2C_STATUS_USED_BY_SW
	.comm	_I2C_CHANNEL_OPERATION_ENGINE_BUSY,4,2 ## @I2C_CHANNEL_OPERATION_ENGINE_BUSY
	.comm	_I2C_CHANNEL_OPERATION_NO_RESPONSE,4,2 ## @I2C_CHANNEL_OPERATION_NO_RESPONSE
	.comm	_I2C_CHANNEL_OPERATION_TIMEOUT,4,2 ## @I2C_CHANNEL_OPERATION_TIMEOUT
	.comm	_I2C_CHANNEL_OPERATION_FAILED,4,2 ## @I2C_CHANNEL_OPERATION_FAILED
	.comm	_I2C_CHANNEL_OPERATION_SUCCEEDED,4,2 ## @I2C_CHANNEL_OPERATION_SUCCEEDED
	.no_dead_strip	_get_channel_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_channel_status
_get_channel_status:                    ; @get_channel_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _DC_I2C_SW_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DC_I2C_SW_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x2, sp, #8
	mov	x1, x0
	bl	_REG_GET
	ldr	x8, [sp, #8]
Lloh3:
	adrp	x9, _DC_I2C_STATUS__DC_I2C_STATUS_USED_BY_SW@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DC_I2C_STATUS__DC_I2C_STATUS_USED_BY_SW@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _I2C_CHANNEL_OPERATION_ENGINE_BUSY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I2C_CHANNEL_OPERATION_ENGINE_BUSY@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	ldr	x8, [x19]
	ldr	x9, [x8]
	tst	x9, x0
	b.eq	LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _I2C_CHANNEL_OPERATION_NO_RESPONSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _I2C_CHANNEL_OPERATION_NO_RESPONSE@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	ldr	x9, [x8, #8]
	tst	x9, x0
	b.eq	LBB0_6
; %bb.5:
Lloh10:
	adrp	x8, _I2C_CHANNEL_OPERATION_TIMEOUT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _I2C_CHANNEL_OPERATION_TIMEOUT@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
	ldr	x8, [x8, #16]
Lloh12:
	adrp	x9, _I2C_CHANNEL_OPERATION_FAILED@GOTPAGE
Lloh13:
	ldr	x9, [x9, _I2C_CHANNEL_OPERATION_FAILED@GOTPAGEOFF]
Lloh14:
	adrp	x10, _I2C_CHANNEL_OPERATION_SUCCEEDED@GOTPAGE
Lloh15:
	ldr	x10, [x10, _I2C_CHANNEL_OPERATION_SUCCEEDED@GOTPAGEOFF]
	tst	x8, x0
	csel	x8, x10, x9, eq
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_DC_I2C_SW_STATUS,4,2           ; @DC_I2C_SW_STATUS
	.comm	_DC_I2C_STATUS__DC_I2C_STATUS_USED_BY_SW,8,3 ; @DC_I2C_STATUS__DC_I2C_STATUS_USED_BY_SW
	.comm	_I2C_CHANNEL_OPERATION_ENGINE_BUSY,4,2 ; @I2C_CHANNEL_OPERATION_ENGINE_BUSY
	.comm	_I2C_CHANNEL_OPERATION_NO_RESPONSE,4,2 ; @I2C_CHANNEL_OPERATION_NO_RESPONSE
	.comm	_I2C_CHANNEL_OPERATION_TIMEOUT,4,2 ; @I2C_CHANNEL_OPERATION_TIMEOUT
	.comm	_I2C_CHANNEL_OPERATION_FAILED,4,2 ; @I2C_CHANNEL_OPERATION_FAILED
	.comm	_I2C_CHANNEL_OPERATION_SUCCEEDED,4,2 ; @I2C_CHANNEL_OPERATION_SUCCEEDED
	.no_dead_strip	_get_channel_status
.subsections_via_symbols
