	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pca9541_probe
_pca9541_probe:                         ## @pca9541_probe
	.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	%rdi, %r15
	movq	8(%rdi), %rbx
	movq	_I2C_FUNC_SMBUS_BYTE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	_I2C_LOCK_SEGMENT@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_i2c_lock_bus
	movq	%r15, %rdi
	callq	_pca9541_release_bus
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_i2c_unlock_bus
	leaq	4(%r15), %r14
	movq	_I2C_MUX_ARBITRATOR@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_pca9541_select_chan@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_pca9541_release_chan@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	movl	$8, %ecx
	callq	_i2c_mux_alloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_i2c_mux_priv
	movq	%r15, (%rax)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_i2c_set_clientdata
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_i2c_mux_add_adapter
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ## @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_I2C_LOCK_SEGMENT,4,2           ## @I2C_LOCK_SEGMENT
	.comm	_I2C_MUX_ARBITRATOR,4,2         ## @I2C_MUX_ARBITRATOR
	.comm	_pca9541_select_chan,4,2        ## @pca9541_select_chan
	.comm	_pca9541_release_chan,4,2       ## @pca9541_release_chan
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"registered master selector for I2C %s\n"

	.no_dead_strip	_pca9541_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pca9541_probe
_pca9541_probe:                         ; @pca9541_probe
	.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, x0
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x8, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_check_functionality
	cbz	w0, LBB0_4
; %bb.1:
Lloh3:
	adrp	x20, _I2C_LOCK_SEGMENT@GOTPAGE
Lloh4:
	ldr	x20, [x20, _I2C_LOCK_SEGMENT@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x21
	bl	_i2c_lock_bus
	mov	x0, x19
	bl	_pca9541_release_bus
	ldr	w1, [x20]
	mov	x0, x21
	bl	_i2c_unlock_bus
	add	x20, x19, #4
Lloh5:
	adrp	x8, _I2C_MUX_ARBITRATOR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I2C_MUX_ARBITRATOR@GOTPAGEOFF]
Lloh7:
	ldr	w4, [x8]
Lloh8:
	adrp	x8, _pca9541_select_chan@GOTPAGE
Lloh9:
	ldr	x8, [x8, _pca9541_select_chan@GOTPAGEOFF]
Lloh10:
	ldr	w5, [x8]
Lloh11:
	adrp	x8, _pca9541_release_chan@GOTPAGE
Lloh12:
	ldr	x8, [x8, _pca9541_release_chan@GOTPAGEOFF]
Lloh13:
	ldr	w6, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	w2, #1
	mov	w3, #8
	bl	_i2c_mux_alloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x21, x0
	bl	_i2c_mux_priv
	str	x19, [x0]
	mov	x0, x19
	mov	x1, x21
	bl	_i2c_set_clientdata
	mov	x0, x21
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_i2c_mux_add_adapter
	cbnz	w0, LBB0_7
; %bb.3:
	ldr	w2, [x19]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	mov	w0, #0
	b	LBB0_7
LBB0_4:
Lloh16:
	adrp	x8, _ENODEV@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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 AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ; @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_I2C_LOCK_SEGMENT,4,2           ; @I2C_LOCK_SEGMENT
	.comm	_I2C_MUX_ARBITRATOR,4,2         ; @I2C_MUX_ARBITRATOR
	.comm	_pca9541_select_chan,4,2        ; @pca9541_select_chan
	.comm	_pca9541_release_chan,4,2       ; @pca9541_release_chan
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"registered master selector for I2C %s\n"

	.no_dead_strip	_pca9541_probe
.subsections_via_symbols
