	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function revo51_i2c_init
_revo51_i2c_init:                       ## @revo51_i2c_init
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, 16(%rbx)
	movl	8(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	movq	%rbx, %rcx
	callq	_snd_i2c_bus_create
	testl	%eax, %eax
	js	LBB0_5
## %bb.3:
	movq	(%rbx), %rdi
	movq	%rbx, 8(%rdi)
	movq	_revo51_bit_ops@GOTPCREL(%rip), %rax
	movq	%rax, (%rdi)
	movq	%r15, %rcx
	addq	$8, %rcx
	leaq	L_.str.1(%rip), %rsi
	movl	$64, %edx
	callq	_snd_i2c_device_create
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:
	movl	8(%rbx), %eax
	movl	%eax, 16(%r14)
	movq	(%rbx), %rax
	movq	%rax, 8(%r14)
	movl	8(%r15), %eax
	movl	%eax, (%r14)
	movq	%r14, (%r15)
	movq	%r14, %rdi
	callq	_snd_pt2258_reset
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ICE1724 GPIO6"

	.comm	_revo51_bit_ops,4,2             ## @revo51_bit_ops
L_.str.1:                               ## @.str.1
	.asciz	"PT2258"

	.no_dead_strip	_revo51_i2c_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function revo51_i2c_init
_revo51_i2c_init:                       ; @revo51_i2c_init
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	str	x0, [x20, #16]
	ldr	w0, [x20, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, #0
	mov	x3, x20
	bl	_snd_i2c_bus_create
	tbnz	w0, #31, LBB0_5
; %bb.2:
	ldr	x0, [x20]
Lloh5:
	adrp	x8, _revo51_bit_ops@GOTPAGE
Lloh6:
	ldr	x8, [x8, _revo51_bit_ops@GOTPAGEOFF]
	stp	x8, x20, [x0]
	add	x3, x21, #8
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #64
	bl	_snd_i2c_device_create
	tbnz	w0, #31, LBB0_5
; %bb.3:
	ldr	w8, [x20, #8]
	str	w8, [x19, #16]
	ldr	x8, [x20]
	str	x8, [x19, #8]
	ldr	w8, [x21, #8]
	str	w8, [x19]
	str	x19, [x21]
	mov	x0, x19
	bl	_snd_pt2258_reset
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ICE1724 GPIO6"

	.comm	_revo51_bit_ops,4,2             ; @revo51_bit_ops
l_.str.1:                               ; @.str.1
	.asciz	"PT2258"

	.no_dead_strip	_revo51_i2c_init
.subsections_via_symbols
