	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max30102_probe
_max30102_probe:                        ## @max30102_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_devm_iio_kfifo_allocate
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_iio_device_attach_buffer
	movq	_MAX30102_DRV_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r13)
	movq	_max30102_info@GOTPCREL(%rip), %rax
	movq	%rax, 40(%r13)
	movq	_INDIO_BUFFER_SOFTWARE@GOTPCREL(%rip), %rax
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%r13)
	movq	_max30102_buffer_setup_ops@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r13)
	movq	%r14, 24(%r13)
	movq	%r13, %rdi
	callq	_iio_priv
	movq	%rax, %r12
	movq	%r13, 24(%rax)
	movq	%r15, 16(%rax)
	movl	(%rbx), %eax
	movl	%eax, (%r12)
	leaq	8(%r12), %rdi
	callq	_mutex_init
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_i2c_set_clientdata
	movl	(%r12), %eax
	cmpl	$128, %eax
	je	LBB0_9
## %bb.3:
	cmpl	$129, %eax
	jne	LBB0_20
## %bb.4:
	movq	_max30102_scan_masks@GOTPCREL(%rip), %rbx
	movq	_max30102_channels@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_max30105_scan_masks@GOTPCREL(%rip), %rbx
	movq	_max30105_channels@GOTPCREL(%rip), %rax
LBB0_10:
	movq	(%rax), %rdi
	movq	%rdi, 16(%r13)
	callq	_ARRAY_SIZE
	movq	%rax, 8(%r13)
	movl	(%rbx), %eax
	movl	%eax, 4(%r13)
	movq	_max30102_regmap_config@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_regmap_init_i2c
	movl	%eax, 4(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	4(%r12), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_12:
	movl	4(%r12), %edi
	movq	_MAX30102_REG_PART_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.13:
	movl	-44(%rbp), %eax
	movq	_MAX30102_PART_NUMBER@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_20
## %bb.14:
	movl	4(%r12), %edi
	movq	_MAX30102_REG_REV_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.15:
	movl	-44(%rbp), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	movq	_MAX30102_REG_MODE_CONFIG_MODE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_max30102_set_powermode
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.16:
	movq	%r12, %rdi
	callq	_max30102_chip_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.17:
	movq	(%r15), %rsi
	testq	%rsi, %rsi
	jle	LBB0_21
## %bb.18:
	movq	_max30102_interrupt_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	orl	(%rax), %r8d
	movq	%r13, (%rsp)
	leaq	L_.str.3(%rip), %r9
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_22
## %bb.19:
	movl	%eax, %ebx
	movq	(%r15), %rdx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_8
LBB0_20:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_21:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_22:
	movq	%r13, %rdi
	callq	_iio_device_register
	movl	%eax, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MAX30102_DRV_NAME,4,2          ## @MAX30102_DRV_NAME
	.comm	_max30102_info,4,2              ## @max30102_info
	.comm	_INDIO_BUFFER_SOFTWARE,4,2      ## @INDIO_BUFFER_SOFTWARE
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_max30102_buffer_setup_ops,4,2  ## @max30102_buffer_setup_ops
	.comm	_max30105_channels,8,3          ## @max30105_channels
	.comm	_max30105_scan_masks,4,2        ## @max30105_scan_masks
	.comm	_max30102_channels,8,3          ## @max30102_channels
	.comm	_max30102_scan_masks,4,2        ## @max30102_scan_masks
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_max30102_regmap_config,4,2     ## @max30102_regmap_config
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"regmap initialization failed\n"

	.comm	_MAX30102_REG_PART_ID,4,2       ## @MAX30102_REG_PART_ID
	.comm	_MAX30102_PART_NUMBER,4,2       ## @MAX30102_PART_NUMBER
	.comm	_MAX30102_REG_REV_ID,4,2        ## @MAX30102_REG_REV_ID
L_.str.1:                               ## @.str.1
	.asciz	"max3010x revision %02x\n"

	.comm	_MAX30102_REG_MODE_CONFIG_MODE_NONE,4,2 ## @MAX30102_REG_MODE_CONFIG_MODE_NONE
L_.str.2:                               ## @.str.2
	.asciz	"no valid irq defined\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_max30102_interrupt_handler,4,2 ## @max30102_interrupt_handler
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.3:                               ## @.str.3
	.asciz	"max30102_irq"

L_.str.4:                               ## @.str.4
	.asciz	"request irq (%d) failed\n"

	.no_dead_strip	_max30102_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max30102_probe
_max30102_probe:                        ; @max30102_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x1
	mov	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	mov	w1, #32
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	mov	x0, x19
	bl	_devm_iio_kfifo_allocate
	cbz	x0, LBB0_5
; %bb.2:
	mov	x1, x0
	mov	x0, x21
	bl	_iio_device_attach_buffer
Lloh0:
	adrp	x8, _MAX30102_DRV_NAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX30102_DRV_NAME@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x21, #48]
Lloh3:
	adrp	x8, _max30102_info@GOTPAGE
Lloh4:
	ldr	x8, [x8, _max30102_info@GOTPAGEOFF]
	str	x8, [x21, #40]
Lloh5:
	adrp	x8, _INDIO_BUFFER_SOFTWARE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INDIO_BUFFER_SOFTWARE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _INDIO_DIRECT_MODE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x21]
Lloh11:
	adrp	x8, _max30102_buffer_setup_ops@GOTPAGE
Lloh12:
	ldr	x8, [x8, _max30102_buffer_setup_ops@GOTPAGEOFF]
	stp	x19, x8, [x21, #24]
	mov	x0, x21
	bl	_iio_priv
	mov	x22, x0
	stp	x20, x21, [x0, #16]
	ldr	w8, [x23]
	str	w8, [x0], #8
	bl	_mutex_init
	mov	x0, x20
	mov	x1, x21
	bl	_i2c_set_clientdata
	ldr	w8, [x22]
	cmp	w8, #128
	b.eq	LBB0_8
; %bb.3:
	cmp	w8, #129
	b.ne	LBB0_19
; %bb.4:
Lloh13:
	adrp	x23, _max30102_scan_masks@GOTPAGE
Lloh14:
	ldr	x23, [x23, _max30102_scan_masks@GOTPAGEOFF]
Lloh15:
	adrp	x8, _max30102_channels@GOTPAGE
Lloh16:
	ldr	x8, [x8, _max30102_channels@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_7:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
Lloh19:
	adrp	x23, _max30105_scan_masks@GOTPAGE
Lloh20:
	ldr	x23, [x23, _max30105_scan_masks@GOTPAGEOFF]
Lloh21:
	adrp	x8, _max30105_channels@GOTPAGE
Lloh22:
	ldr	x8, [x8, _max30105_channels@GOTPAGEOFF]
LBB0_9:
	ldr	x0, [x8]
	str	x0, [x21, #16]
	bl	_ARRAY_SIZE
	str	x0, [x21, #8]
	ldr	w8, [x23]
	str	w8, [x21, #4]
Lloh23:
	adrp	x1, _max30102_regmap_config@GOTPAGE
Lloh24:
	ldr	x1, [x1, _max30102_regmap_config@GOTPAGEOFF]
	mov	x0, x20
	bl	_devm_regmap_init_i2c
	str	w0, [x22, #4]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.10:
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x22, #4]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_11:
	ldr	w0, [x22, #4]
Lloh27:
	adrp	x8, _MAX30102_REG_PART_ID@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MAX30102_REG_PART_ID@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	mov	x23, x0
	cbnz	w0, LBB0_7
; %bb.12:
	ldr	w8, [sp, #12]
Lloh30:
	adrp	x9, _MAX30102_PART_NUMBER@GOTPAGE
Lloh31:
	ldr	x9, [x9, _MAX30102_PART_NUMBER@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_19
; %bb.13:
	ldr	w0, [x22, #4]
Lloh33:
	adrp	x8, _MAX30102_REG_REV_ID@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MAX30102_REG_REV_ID@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	mov	x23, x0
	cbnz	w0, LBB0_7
; %bb.14:
	ldr	w2, [sp, #12]
Lloh36:
	adrp	x1, l_.str.1@PAGE
Lloh37:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
Lloh38:
	adrp	x8, _MAX30102_REG_MODE_CONFIG_MODE_NONE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _MAX30102_REG_MODE_CONFIG_MODE_NONE@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	x0, x22
	mov	w2, #0
	bl	_max30102_set_powermode
	mov	x23, x0
	cbnz	w0, LBB0_7
; %bb.15:
	mov	x0, x22
	bl	_max30102_chip_init
	mov	x23, x0
	cbnz	w0, LBB0_7
; %bb.16:
	ldr	x1, [x20]
	cmp	x1, #0
	b.le	LBB0_20
; %bb.17:
Lloh41:
	adrp	x8, _max30102_interrupt_handler@GOTPAGE
Lloh42:
	ldr	x8, [x8, _max30102_interrupt_handler@GOTPAGEOFF]
Lloh43:
	adrp	x9, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh44:
	ldr	x9, [x9, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh45:
	ldr	w3, [x8]
Lloh46:
	ldr	w8, [x9]
Lloh47:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh48:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	orr	w4, w9, w8
Lloh50:
	adrp	x5, l_.str.3@PAGE
Lloh51:
	add	x5, x5, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, #0
	mov	x6, x21
	bl	_devm_request_threaded_irq
	cbz	w0, LBB0_21
; %bb.18:
	mov	x23, x0
	ldr	x8, [x20]
	str	x8, [sp]
Lloh52:
	adrp	x1, l_.str.4@PAGE
Lloh53:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_7
LBB0_19:
Lloh54:
	adrp	x8, _ENODEV@GOTPAGE
Lloh55:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_6
LBB0_20:
Lloh56:
	adrp	x1, l_.str.2@PAGE
Lloh57:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh58:
	adrp	x8, _EINVAL@GOTPAGE
Lloh59:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_21:
	mov	x0, x21
	bl	_iio_device_register
	mov	x23, x0
	b	LBB0_7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh45
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpAdd	Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MAX30102_DRV_NAME,4,2          ; @MAX30102_DRV_NAME
	.comm	_max30102_info,4,2              ; @max30102_info
	.comm	_INDIO_BUFFER_SOFTWARE,4,2      ; @INDIO_BUFFER_SOFTWARE
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_max30102_buffer_setup_ops,4,2  ; @max30102_buffer_setup_ops
	.comm	_max30105_channels,8,3          ; @max30105_channels
	.comm	_max30105_scan_masks,4,2        ; @max30105_scan_masks
	.comm	_max30102_channels,8,3          ; @max30102_channels
	.comm	_max30102_scan_masks,4,2        ; @max30102_scan_masks
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_max30102_regmap_config,4,2     ; @max30102_regmap_config
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"regmap initialization failed\n"

	.comm	_MAX30102_REG_PART_ID,4,2       ; @MAX30102_REG_PART_ID
	.comm	_MAX30102_PART_NUMBER,4,2       ; @MAX30102_PART_NUMBER
	.comm	_MAX30102_REG_REV_ID,4,2        ; @MAX30102_REG_REV_ID
l_.str.1:                               ; @.str.1
	.asciz	"max3010x revision %02x\n"

	.comm	_MAX30102_REG_MODE_CONFIG_MODE_NONE,4,2 ; @MAX30102_REG_MODE_CONFIG_MODE_NONE
l_.str.2:                               ; @.str.2
	.asciz	"no valid irq defined\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_max30102_interrupt_handler,4,2 ; @max30102_interrupt_handler
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.3:                               ; @.str.3
	.asciz	"max30102_irq"

l_.str.4:                               ; @.str.4
	.asciz	"request irq (%d) failed\n"

	.no_dead_strip	_max30102_probe
.subsections_via_symbols
