	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bh1750_probe
_bh1750_probe:                          ## @bh1750_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	4(%rdi), %edi
	movq	_I2C_FUNC_I2C@GOTPCREL(%rip), %rax
	movq	_I2C_FUNC_SMBUS_WRITE_BYTE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	%r15, %rdi
	movl	$24, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r12
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_i2c_set_clientdata
	movq	%r15, 16(%r12)
	movq	_bh1750_chip_info_tbl@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r14), %rcx
	leaq	(%rax,%rcx,8), %rdx
	movq	%rdx, 8(%r12)
	movl	4(%rax,%rcx,8), %esi
	imull	(%rax,%rcx,8), %esi
	movq	%r12, %rdi
	callq	_bh1750_change_int_time
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movq	%r12, %rdi
	callq	_mutex_init
	movq	%r15, 24(%rbx)
	movq	_bh1750_info@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movl	8(%r14), %eax
	movl	%eax, 12(%rbx)
	movq	_bh1750_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 8(%rbx)
	callq	_ARRAY_SIZE
	movl	%eax, 4(%rbx)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iio_device_register            ## TAILCALL
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_I2C,4,2               ## @I2C_FUNC_I2C
	.comm	_I2C_FUNC_SMBUS_WRITE_BYTE,4,2  ## @I2C_FUNC_SMBUS_WRITE_BYTE
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_bh1750_chip_info_tbl,8,3       ## @bh1750_chip_info_tbl
	.comm	_bh1750_info,4,2                ## @bh1750_info
	.comm	_bh1750_channels,4,2            ## @bh1750_channels
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.no_dead_strip	_bh1750_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bh1750_probe
_bh1750_probe:                          ; @bh1750_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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _I2C_FUNC_I2C@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_I2C@GOTPAGEOFF]
	ldr	w0, [x0, #4]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _I2C_FUNC_SMBUS_WRITE_BYTE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I2C_FUNC_SMBUS_WRITE_BYTE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_i2c_check_functionality
	cbz	w0, LBB0_4
; %bb.1:
	mov	x0, x20
	mov	w1, #24
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x21, x0
	bl	_iio_priv
	mov	x22, x0
	mov	x0, x20
	mov	x1, x21
	bl	_i2c_set_clientdata
Lloh6:
	adrp	x8, _bh1750_chip_info_tbl@GOTPAGE
Lloh7:
	ldr	x8, [x8, _bh1750_chip_info_tbl@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x8, x8, x9, lsl #3
	stp	x8, x20, [x22, #8]
	ldp	w9, w8, [x8]
	mul	w1, w8, w9
	mov	x0, x22
	bl	_bh1750_change_int_time
	tbnz	w0, #31, LBB0_7
; %bb.3:
	mov	x0, x22
	bl	_mutex_init
Lloh9:
	adrp	x8, _bh1750_info@GOTPAGE
Lloh10:
	ldr	x8, [x8, _bh1750_info@GOTPAGEOFF]
	stp	x8, x20, [x21, #16]
	ldr	w8, [x19, #8]
Lloh11:
	adrp	x9, _bh1750_channels@GOTPAGE
Lloh12:
	ldr	x9, [x9, _bh1750_channels@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x9]
	stp	w0, w8, [x21, #8]
	bl	_ARRAY_SIZE
Lloh14:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	stp	w8, w0, [x21]
	mov	x0, x21
	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
	b	_iio_device_register
LBB0_4:
Lloh17:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_I2C,4,2               ; @I2C_FUNC_I2C
	.comm	_I2C_FUNC_SMBUS_WRITE_BYTE,4,2  ; @I2C_FUNC_SMBUS_WRITE_BYTE
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_bh1750_chip_info_tbl,8,3       ; @bh1750_chip_info_tbl
	.comm	_bh1750_info,4,2                ; @bh1750_info
	.comm	_bh1750_channels,4,2            ; @bh1750_channels
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.no_dead_strip	_bh1750_probe
.subsections_via_symbols
