	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max30100_probe
_max30100_probe:                        ## @max30100_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_devm_iio_kfifo_allocate
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_iio_device_attach_buffer
	movq	_MAX30100_DRV_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_max30100_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 40(%rbx)
	movq	_max30100_info@GOTPCREL(%rip), %rax
	movq	%rax, 32(%rbx)
	callq	_ARRAY_SIZE
	movl	%eax, 28(%rbx)
	movq	_max30100_scan_masks@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_INDIO_BUFFER_SOFTWARE@GOTPCREL(%rip), %rax
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	_max30100_buffer_setup_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movq	%r14, 8(%rbx)
	movq	%rbx, %rdi
	callq	_iio_priv
	movq	%rax, %r12
	movq	%rbx, 16(%rax)
	movq	%r15, 8(%rax)
	leaq	4(%rax), %rdi
	callq	_mutex_init
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_i2c_set_clientdata
	movq	_max30100_regmap_config@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_regmap_init_i2c
	movl	%eax, (%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	(%r12), %edi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
LBB0_5:
	subl	(%rax), %r12d
LBB0_6:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_max30100_set_powermode
	movq	%r12, %rdi
	callq	_max30100_chip_init
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.8:
	movq	(%r15), %rsi
	testq	%rsi, %rsi
	jle	LBB0_11
## %bb.9:
	movq	_max30100_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	%rbx, (%rsp)
	leaq	L_.str.2(%rip), %r9
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:
	movl	%eax, %r12d
	movq	(%r15), %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_6
LBB0_11:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_12:
	movq	%rbx, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iio_device_register            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MAX30100_DRV_NAME,4,2          ## @MAX30100_DRV_NAME
	.comm	_max30100_channels,4,2          ## @max30100_channels
	.comm	_max30100_info,4,2              ## @max30100_info
	.comm	_max30100_scan_masks,4,2        ## @max30100_scan_masks
	.comm	_INDIO_BUFFER_SOFTWARE,4,2      ## @INDIO_BUFFER_SOFTWARE
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_max30100_buffer_setup_ops,4,2  ## @max30100_buffer_setup_ops
	.comm	_max30100_regmap_config,4,2     ## @max30100_regmap_config
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"regmap initialization failed.\n"

L_.str.1:                               ## @.str.1
	.asciz	"no valid irq defined\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_max30100_interrupt_handler,4,2 ## @max30100_interrupt_handler
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.2:                               ## @.str.2
	.asciz	"max30100_irq"

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

	.no_dead_strip	_max30100_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max30100_probe
_max30100_probe:                        ; @max30100_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	mov	w1, #24
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	mov	x0, x19
	bl	_devm_iio_kfifo_allocate
	cbz	x0, LBB0_4
; %bb.2:
	mov	x1, x0
	mov	x0, x21
	bl	_iio_device_attach_buffer
Lloh0:
	adrp	x8, _MAX30100_DRV_NAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX30100_DRV_NAME@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _max30100_channels@GOTPAGE
Lloh4:
	ldr	x9, [x9, _max30100_channels@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x9]
	stp	w0, w8, [x21, #40]
Lloh6:
	adrp	x8, _max30100_info@GOTPAGE
Lloh7:
	ldr	x8, [x8, _max30100_info@GOTPAGEOFF]
	str	x8, [x21, #32]
	bl	_ARRAY_SIZE
Lloh8:
	adrp	x8, _max30100_scan_masks@GOTPAGE
Lloh9:
	ldr	x8, [x8, _max30100_scan_masks@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	stp	w8, w0, [x21, #24]
Lloh11:
	adrp	x8, _INDIO_BUFFER_SOFTWARE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _INDIO_BUFFER_SOFTWARE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _INDIO_DIRECT_MODE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x21]
Lloh17:
	adrp	x8, _max30100_buffer_setup_ops@GOTPAGE
Lloh18:
	ldr	x8, [x8, _max30100_buffer_setup_ops@GOTPAGEOFF]
	stp	x19, x8, [x21, #8]
	mov	x0, x21
	bl	_iio_priv
	mov	x22, x0
	stp	x20, x21, [x0, #8]
	add	x0, x0, #4
	bl	_mutex_init
	mov	x0, x20
	mov	x1, x21
	bl	_i2c_set_clientdata
Lloh19:
	adrp	x1, _max30100_regmap_config@GOTPAGE
Lloh20:
	ldr	x1, [x1, _max30100_regmap_config@GOTPAGEOFF]
	mov	x0, x20
	bl	_devm_regmap_init_i2c
	str	w0, [x22]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.3:
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x22]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_PTR_ERR
LBB0_4:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
	mov	x0, x22
	mov	w1, #0
	bl	_max30100_set_powermode
	mov	x0, x22
	bl	_max30100_chip_init
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.8:
	ldr	x1, [x20]
	cmp	x1, #0
	b.le	LBB0_11
; %bb.9:
Lloh25:
	adrp	x8, _max30100_interrupt_handler@GOTPAGE
Lloh26:
	ldr	x8, [x8, _max30100_interrupt_handler@GOTPAGEOFF]
Lloh27:
	adrp	x9, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh28:
	ldr	x9, [x9, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh29:
	ldr	w3, [x8]
Lloh30:
	ldr	w8, [x9]
Lloh31:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh32:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w4, w9, w8
Lloh34:
	adrp	x5, l_.str.2@PAGE
Lloh35:
	add	x5, x5, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, #0
	mov	x6, x21
	bl	_devm_request_threaded_irq
	cbz	w0, LBB0_12
; %bb.10:
	mov	x22, x0
	ldr	x8, [x20]
	str	x8, [sp]
Lloh36:
	adrp	x1, l_.str.3@PAGE
Lloh37:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_6
LBB0_11:
Lloh38:
	adrp	x1, l_.str.1@PAGE
Lloh39:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh40:
	adrp	x8, _EINVAL@GOTPAGE
Lloh41:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_12:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_iio_device_register
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh29
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MAX30100_DRV_NAME,4,2          ; @MAX30100_DRV_NAME
	.comm	_max30100_channels,4,2          ; @max30100_channels
	.comm	_max30100_info,4,2              ; @max30100_info
	.comm	_max30100_scan_masks,4,2        ; @max30100_scan_masks
	.comm	_INDIO_BUFFER_SOFTWARE,4,2      ; @INDIO_BUFFER_SOFTWARE
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_max30100_buffer_setup_ops,4,2  ; @max30100_buffer_setup_ops
	.comm	_max30100_regmap_config,4,2     ; @max30100_regmap_config
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"regmap initialization failed.\n"

l_.str.1:                               ; @.str.1
	.asciz	"no valid irq defined\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_max30100_interrupt_handler,4,2 ; @max30100_interrupt_handler
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.2:                               ; @.str.2
	.asciz	"max30100_irq"

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

	.no_dead_strip	_max30100_probe
.subsections_via_symbols
