	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wdt87xx_get_desc
_wdt87xx_get_desc:                      ## @wdt87xx_get_desc
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movaps	l___const.wdt87xx_get_desc.tx_buf(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	l___const.wdt87xx_get_desc.tx_buf+16(%rip), %rax
	movq	%rax, -48(%rbp)
	andl	$15, %esi
	orl	$16, %esi
	movl	%esi, -56(%rbp)
	leaq	-64(%rbp), %rsi
	movl	$24, %edx
	movq	%r12, %rcx
	movq	%r14, %r8
	callq	_wdt87xx_i2c_xfer
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_5
LBB0_2:
	movslq	(%r12), %rdx
	cmpq	%r14, %rdx
	jne	LBB0_3
## %bb.4:
	movq	_WDT_COMMAND_DELAY_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_mdelay
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.wdt87xx_get_desc.tx_buf
l___const.wdt87xx_get_desc.tx_buf:
	.long	34                              ## 0x22
	.long	0                               ## 0x0
	.long	16                              ## 0x10
	.long	14                              ## 0xe
	.long	35                              ## 0x23
	.long	0                               ## 0x0

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get desc failed: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"unexpected response to get desc: %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_WDT_COMMAND_DELAY_MS,4,2       ## @WDT_COMMAND_DELAY_MS
	.no_dead_strip	_wdt87xx_get_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wdt87xx_get_desc
_wdt87xx_get_desc:                      ; @wdt87xx_get_desc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x3
	mov	x21, x2
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, l___const.wdt87xx_get_desc.tx_buf@PAGE
Lloh4:
	add	x8, x8, l___const.wdt87xx_get_desc.tx_buf@PAGEOFF
	ldr	q0, [x8]
	str	q0, [sp]
	ldr	x8, [x8, #16]
	str	x8, [sp, #16]
	mov	w8, #16
	bfxil	w8, w1, #0, #4
	str	w8, [sp, #8]
	mov	x1, sp
	mov	w2, #24
	mov	x3, x21
	mov	x4, x20
	bl	_wdt87xx_i2c_xfer
	cbz	w0, LBB0_2
; %bb.1:
	mov	x22, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_dev_err
	b	LBB0_5
LBB0_2:
	ldrsw	x2, [x21]
	cmp	x2, x20
	b.ne	LBB0_4
; %bb.3:
Lloh7:
	adrp	x8, _WDT_COMMAND_DELAY_MS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _WDT_COMMAND_DELAY_MS@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_mdelay
	mov	w22, #0
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_dev_err
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_5:
	ldr	x8, [sp, #24]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x22
	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
	add	sp, sp, #80
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.wdt87xx_get_desc.tx_buf
l___const.wdt87xx_get_desc.tx_buf:
	.long	34                              ; 0x22
	.long	0                               ; 0x0
	.long	16                              ; 0x10
	.long	14                              ; 0xe
	.long	35                              ; 0x23
	.long	0                               ; 0x0

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get desc failed: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"unexpected response to get desc: %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_WDT_COMMAND_DELAY_MS,4,2       ; @WDT_COMMAND_DELAY_MS
	.no_dead_strip	_wdt87xx_get_desc
.subsections_via_symbols
