	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ngene_i2c_set_bus
_ngene_i2c_set_bus:                     ## @ngene_i2c_set_bus
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rax
	testb	$2, (%rax)
	je	LBB0_8
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	cmpl	%esi, (%rdi)
	je	LBB0_8
## %bb.2:
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.4:
	cmpl	$1, %r14d
	jne	LBB0_7
## %bb.5:
	movl	$3, %r15d
	movl	$2, %esi
	jmp	LBB0_6
LBB0_3:
	movl	$2, %r15d
	movl	$3, %esi
LBB0_6:
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ngene_command_gpio_set
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	$1, %edx
	callq	_ngene_command_gpio_set
LBB0_7:
	movl	%r14d, (%rbx)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ngene_i2c_set_bus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ngene_i2c_set_bus
_ngene_i2c_set_bus:                     ; @ngene_i2c_set_bus
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	x8, [x0, #8]
	ldrb	w8, [x8]
	tbz	w8, #1, LBB0_8
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, w1
	b.eq	LBB0_8
; %bb.2:
	cbz	w19, LBB0_5
; %bb.3:
	cmp	w19, #1
	b.ne	LBB0_7
; %bb.4:
	mov	w21, #3
	mov	w1, #2
	b	LBB0_6
LBB0_5:
	mov	w21, #2
	mov	w1, #3
LBB0_6:
	mov	x0, x20
	mov	w2, #0
	bl	_ngene_command_gpio_set
	mov	x0, x20
	mov	x1, x21
	mov	w2, #1
	bl	_ngene_command_gpio_set
LBB0_7:
	str	w19, [x20]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ngene_i2c_set_bus
.subsections_via_symbols
