	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dvb_usb_i2c_init               ## -- Begin function dvb_usb_i2c_init
	.p2align	4, 0x90
_dvb_usb_i2c_init:                      ## @dvb_usb_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_DVB_USB_IS_AN_I2C_ADAPTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 48(%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	cmpq	$0, 56(%rdi)
	je	LBB0_3
## %bb.4:
	leaq	8(%rbx), %r14
	movl	32(%rbx), %edi
	movq	64(%rbx), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_strscpy
	movq	40(%rbx), %rax
	movq	56(%rbx), %rcx
	movq	%rcx, 24(%rbx)
	movq	$0, 16(%rbx)
	movq	%rax, 8(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_i2c_set_adapdata
	movq	%r14, %rdi
	callq	_i2c_add_adapter
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	callq	_err
LBB0_6:
	movq	_DVB_USB_STATE_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	jmp	LBB0_7
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DVB_USB_IS_AN_I2C_ADAPTER,4,2  ## @DVB_USB_IS_AN_I2C_ADAPTER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no i2c algorithm specified"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"could not add i2c adapter"

	.comm	_DVB_USB_STATE_I2C,4,2          ## @DVB_USB_STATE_I2C
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dvb_usb_i2c_init               ; -- Begin function dvb_usb_i2c_init
	.p2align	2
_dvb_usb_i2c_init:                      ; @dvb_usb_i2c_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0, #48]
Lloh0:
	adrp	x9, _DVB_USB_IS_AN_I2C_ADAPTER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DVB_USB_IS_AN_I2C_ADAPTER@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #56]
	cbz	x8, LBB0_6
; %bb.2:
	ldr	w0, [x19, #32]
	ldr	x8, [x19, #64]
	ldr	w1, [x8]
	mov	w2, #4
	bl	_strscpy
	ldr	x8, [x19, #56]
	stp	xzr, x8, [x19, #16]
	ldr	x8, [x19, #40]
	mov	x20, x19
	str	x8, [x20, #8]!
	mov	x0, x20
	mov	x1, x19
	bl	_i2c_set_adapdata
	mov	x0, x20
	bl	_i2c_add_adapter
	mov	x20, x0
	tbz	w0, #31, LBB0_4
; %bb.3:
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_err
LBB0_4:
Lloh5:
	adrp	x8, _DVB_USB_STATE_I2C@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DVB_USB_STATE_I2C@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_7
LBB0_5:
	mov	w20, #0
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_err
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_DVB_USB_IS_AN_I2C_ADAPTER,4,2  ; @DVB_USB_IS_AN_I2C_ADAPTER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no i2c algorithm specified"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"could not add i2c adapter"

	.comm	_DVB_USB_STATE_I2C,4,2          ; @DVB_USB_STATE_I2C
.subsections_via_symbols
