	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hmc5843_common_probe           ## -- Begin function hmc5843_common_probe
	.p2align	4, 0x90
_hmc5843_common_probe:                  ## @hmc5843_common_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r13
	movl	$32, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_dev_set_drvdata
	movq	%r14, %rdi
	callq	_iio_priv
	movq	%rax, %rbx
	movq	%r13, 24(%rax)
	movq	%r15, 16(%rax)
	movq	_hmc5843_chip_info_tbl@GOTPCREL(%rip), %rax
	movl	%r12d, %ecx
	shlq	$2, %rcx
	addq	(%rax), %rcx
	movq	%rcx, (%rbx)
	leaq	12(%rbx), %rdi
	callq	_mutex_init
	leaq	8(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_iio_read_mount_matrix
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.3:
	movq	%r13, 32(%r14)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r14)
	movq	_hmc5843_info@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r14)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	movq	(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movl	$4, 8(%r14)
	movq	_hmc5843_scan_masks@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movq	%rbx, %rdi
	callq	_hmc5843_init
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	_hmc5843_trigger_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_iio_triggered_buffer_setup
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movq	%r14, %rdi
	callq	_iio_device_register
	testl	%eax, %eax
	jns	LBB0_10
## %bb.8:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_iio_triggered_buffer_cleanup
	movl	%ebx, %r12d
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_10:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	%eax, %r12d
	jmp	LBB0_10
LBB0_6:
	movl	%eax, %r12d
LBB0_9:
	movq	%r14, %rdi
	callq	_iio_priv
	movq	_HMC5843_MODE_SLEEP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_hmc5843_set_mode
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_hmc5843_chip_info_tbl,8,3      ## @hmc5843_chip_info_tbl
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mount-matrix"

	.comm	_hmc5843_info,4,2               ## @hmc5843_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_hmc5843_scan_masks,4,2         ## @hmc5843_scan_masks
	.comm	_hmc5843_trigger_handler,4,2    ## @hmc5843_trigger_handler
	.comm	_HMC5843_MODE_SLEEP,4,2         ## @HMC5843_MODE_SLEEP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hmc5843_common_probe           ; -- Begin function hmc5843_common_probe
	.p2align	2
_hmc5843_common_probe:                  ; @hmc5843_common_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x22, x2
	mov	x24, x1
	mov	x20, x0
	mov	w1, #32
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	mov	x1, x19
	bl	_dev_set_drvdata
	mov	x0, x19
	bl	_iio_priv
	mov	x23, x0
	stp	x24, x20, [x0, #16]
Lloh0:
	adrp	x8, _hmc5843_chip_info_tbl@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hmc5843_chip_info_tbl@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x8, x8, w22, uxtw #2
	str	x8, [x0], #12
	bl	_mutex_init
	add	x2, x23, #8
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_iio_read_mount_matrix
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.2:
	str	x21, [x19]
Lloh5:
	adrp	x8, _hmc5843_info@GOTPAGE
Lloh6:
	ldr	x8, [x8, _hmc5843_info@GOTPAGEOFF]
Lloh7:
	adrp	x9, _INDIO_DIRECT_MODE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _INDIO_DIRECT_MODE@GOTPAGEOFF]
	stp	x8, x20, [x19, #24]
Lloh9:
	ldr	w8, [x9]
	ldr	x9, [x23]
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
	mov	w8, #4
Lloh10:
	adrp	x9, _hmc5843_scan_masks@GOTPAGE
Lloh11:
	ldr	x9, [x9, _hmc5843_scan_masks@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	stp	w8, w9, [x19, #8]
	mov	x0, x23
	bl	_hmc5843_init
	tbnz	w0, #31, LBB0_8
; %bb.3:
Lloh13:
	adrp	x8, _hmc5843_trigger_handler@GOTPAGE
Lloh14:
	ldr	x8, [x8, _hmc5843_trigger_handler@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, #0
	mov	x3, #0
	bl	_iio_triggered_buffer_setup
	tbnz	w0, #31, LBB0_9
; %bb.4:
	mov	x0, x19
	bl	_iio_device_register
	tbnz	w0, #31, LBB0_10
; %bb.5:
	mov	w22, #0
	b	LBB0_7
LBB0_6:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x22, x0
	b	LBB0_7
LBB0_9:
	mov	x22, x0
	b	LBB0_11
LBB0_10:
	mov	x22, x0
	mov	x0, x19
	bl	_iio_triggered_buffer_cleanup
LBB0_11:
	mov	x0, x19
	bl	_iio_priv
Lloh19:
	adrp	x8, _HMC5843_MODE_SLEEP@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HMC5843_MODE_SLEEP@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	bl	_hmc5843_set_mode
	b	LBB0_7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_hmc5843_chip_info_tbl,8,3      ; @hmc5843_chip_info_tbl
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mount-matrix"

	.comm	_hmc5843_info,4,2               ; @hmc5843_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_hmc5843_scan_masks,4,2         ; @hmc5843_scan_masks
	.comm	_hmc5843_trigger_handler,4,2    ; @hmc5843_trigger_handler
	.comm	_HMC5843_MODE_SLEEP,4,2         ; @HMC5843_MODE_SLEEP
.subsections_via_symbols
